SwiftLinkPreview v2.0.0 Release Notes
-
๐ Released on 2017-01-19.
๐ Changed
- Fully asynchronous (DispatchQueue).
- โ Removed global state
- ๐ Better response dictionary subscription via Enum
- ๐ง Configurable via constructor (URLSession, Work Queue, Response Queue)
- Changed by Yehor Popovych.
โ Added
- ๐ Caching support (InMemoryCache, but can be extended to other types)
- Added by Yehor Popovych.
API breaking changes
- Subscriptions via Enum require changes in current code
- ๐ง
preview
method returns a Cancellable object with cancel method. This allows reusing of single configured SLP instance for multiple requests. cancel method removed from SwiftLinkPreview class.