The civilized way to write REST API clients for iOS / macOS
Fixed:
Fixed:
Enhacements
ResourceStatusOverlay.xib
into your own project if you plan to use ResourceStatusOverlay
’s default UI.Resource.withParams()
method lets you add many query parameters at once. (#294)Fixes
Breaking Changes
Extensions/Alamofire-4
.Fixed
cancelLoadIfUnobserved(afterDelay:)
now properly pays attention to its argument. Thanks, @acecilia! (#279)Enhacements
Breaking Changes
Important note: An issue in CocoaPods may prevent Siesta (and other pods) from building correctly in XCode 10 for some configurations. If your pod build fails with EXPANDED_CODE_SIGN_IDENTITY: unbound variable
, install the CocoaPods 1.6 beta using gem install cocoapods --pre
. More info here.
RequestDelegate
API makes it much simpler to create custom Request
s. This is useful for add third-party auth libraries and adding non-network behavior (e.g. a pause) to request chains. (#254, #152)loadIfNeeded()
. (#237, #255)ResourceImageView
now returns a nil resource after the URL is set to nil. (#249, #259)Content-Type
in configuration ad request mutations now follow a well-defined order of precedence, and do not cause duplicate headers. Thanks, @massdonati! (#246, #247)None.
Fixes deprecations on Xcode 9.1 (#232). Thanks to @aoge123 for helping with this one!
Fixes Swift 3.2 error & deprecations for users still using Swift 3. Thanks to @reversepanda for helping with this one!
1.2.x
or the swift-3
branch.Codable
is the new, better way to handle JSON — and Siesta supports it nicely. See it in action in the example project.Codable
, Siesta now provides a convenient way to disable its default JSON → Dictionary parsing while still preserving the built-in text and image parsing. (It was an all-or-nothing proposition before.) See https://github.com/bustoutsolutions/siesta/pull/214 for details.Codable
just yet, the SwiftyJSON support that used to be in the example project now lives in Extensions/
.pod try
a much more edifying experience.None.