v1.3.0
What's New
This update adds some great new things:
- #24 New
updatemethods to allow aRequestto be called repeatedly (thanks to @ezraberch)
Request {
Url("https://jsonplaceholder.typicode.com/todo")
}
.update(every: 10)
.update(publisher: Timer.publish(every: 10, on: .main, in: .common).autoconnect())
.call()
- #27 New
Timeoutparam
Timeout(60)
Timeout(60, for: .request)
Timeout(60, for: .resource)
- #31 Improved
RequestError(thanks to @brennobemoura)
RequestError now conforms to the Error protocol, and more error types can be caught and handled by your code.
- Fix overlap with SwiftUI
associatedtype Body
When setting the request's Body in a SwiftUI View, use RequestBody instead. This will avoid conflicts with the View protocol.
Coming Soon
This release had a lot of great stuff packed in. Here's a few things you can look for in the next release, 1.4.0:
- #34 Improved Combine support
@Requestedproperty wrapper for your SwiftUI code