Swift 2 rides into the sunset
This release includes the last planned API changes for Swift 2.x. Barring the discovery of serious API design flaws, Swift 2 work from now on will be bug fixes only.
A preview of Swift 3 compatibility is now available on the swift3
branch. Grab that beta and hop on the ride! A wild oscillation between delight and apoplexy awaits. See the release plans for goals & timeline, and subscribe to #103 for status updates.
Enhancements
- Request decorators, chains, and repeats: it is now possible to configure serivce-wide request behaviors such as automatic token renewal. See the new examples in the user guide. (#98, #104)
- Improved content transformer type mismatch behavior. (#100)
- UI helpers are in a separate module; directories are reorganized in anticipation of SwiftPM support. (#102)
Entity.headers
is now public. (#107)
Fixes
- Updated and expanded user guide. The new host whitelisting section is of particular note.
- Fixed minor API doc breakage. (#92)
Breaking Changes
- The UI helpers,
ResourceStatusOverlay
andRemoteImageView
, are now separate from the Siesta core API:- If you are using Carthage or building the framework directly from the Xcode project, they are now in a separate
SiestaUI
framework. You will need to include that framework separately in your project, and addimport SiestaUI
in your code. - If you are using Cocoapods, the UI helpers are in a separate subspec. You will need to add
pod 'Siesta/UI'
to yourPodfile
. However, due to limitations of Cocoapods, you will stillimport Siesta
for UI helpers and core API alike.
- If you are using Carthage or building the framework directly from the Xcode project, they are now in a separate
Request.onCompletion
now takes aResponeInfo
struct instead of just aResponse
. Where your existingonCompletion
hook uses$0
, replace it with$0.response
.- The
skipWhenEntityMatchesOutputType:
option is gone, without an exact replacement. See #100.