This repository has been archived by the owner on Jan 18, 2025. It is now read-only.
Releases: LeonardoCardoso/SwiftLinkPreview
Releases · LeonardoCardoso/SwiftLinkPreview
2.0.7
Added
Extract icon
- pr #60.- Added by Vincent Toms.
2.0.6
Changed
NSDataDetector
- pr #56.- Changed by Vincent Toms.
2.0.5
Changed
extractURL
made public - issue #52.- Changed by Leonardo Cardoso.
2.0.4
Changed
- Whitespace and new lines - issue #47.
- Support for macOS 10.10 - issue #48.
- Changed by Leonardo Cardoso.
2.0.3
- Renamed the Objective-C compatible wrapper fro the preview method to previewLink. This resolves ambiguous method errors in Swift builds - issue #41.
- Changed by David Gifford.
2.0.2
Added
- Objective-C init method with no parameters, defaults to the same options as the Swift default parameters.
- Objective-C init method which allows user to set parameters - passing nil will default the parameters. InMemoryCache is a BOOL parameter to use or not use a cache.
- Objective-C preview method which returns a dictionary of values on success, and an NSError object on failure which contains a localized error description.
- Added by David Gifford.
Changed
- Referenced objects are now derived from NSObject to make them Objective-C compatible.
- Changed by David Gifford.
2.0.1
Changed
- Local analysis out of threads.
- iOS8 backport compatibility
- Changed by Leonardo Cardoso.
Fixed
- Crash when no URL was sent to SLP.
- Fixed by Leonardo Cardoso.
2.0.0
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.
1.0.1
Added
- Compatibility with Obj-C.
- Added by Leonardo Cardoso.
1.0.0
Added
- Major Version 1.0.0 with Swift 3.0.
- Added by Leonardo Cardoso.