Skip to content
This repository has been archived by the owner on Sep 15, 2024. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
artemkalinovsky committed Apr 25, 2022
1 parent a34c3c3 commit f38d9f5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Luckily, *Legatus* was implemented with `Combine` framework and have couple of f
* Reachability tracking.
* Support JSON and XML response formats.
* ***Combine*** extension.
* ***Swift Concurrency*** support.

*Legatus* is inspired by [Moya](https://github.com/Moya/Moya).

Expand Down Expand Up @@ -250,6 +251,16 @@ While working with SwiftUI, where most of UI updates based on *Combine* mechanis
.store(in: &subscriptions)
```

## Swift Concurrency Extension 🚦
``` swift
let httpBinApiClient = APIClient(baseURL: URL(string: "https://httpbin.org/")!)
do {
let httpBinGetResponse = try await httpBinApiClient.executeRequest(request: HttpBinGetRequest())
} catch {
// handle error
}
```

## Apps using Legatus 📱

- [PinPlace](https://apps.apple.com/ua/app/pinplace/id1571349149)
Expand Down

0 comments on commit f38d9f5

Please sign in to comment.