Releases: chris-swift-dev/RemoteImage
Releases · chris-swift-dev/RemoteImage
Say hello to more customization options
It's another major update but it shouldn't lead to a breaking change.
New
- Support for a custom
RemoteImageURLDataPublisher(by default:URLSession.shared)
--> Now you can use your customURLSession, for example with low data mode support - Use the new SwiftUI
StateObjectproperty wrapper with your service instance, just pass it to the new initializer with the service parameter (create an instance of the built-in service through theDefaultRemoteImageServiceFactory) - Support for a custom
RemoteImageService
--> Customize the service completely to your needs
--> Prefetch images if you want
Improvements
- Optimizations under the hood
- Added some basic API documentation
Other
RemoteImageTypephAssetis now deprecated (will be removed in the future) because the localIdentifier is device specific and therefore cannot be used to uniquely identify a PHAsset across devices.
Swift 5.3 & macOS
Improvements
- Added macOS support
- Make use of the function builder improvements in Swift 5.3
Bugfixes
- Removed possible retain cycle
Optimization
Improvements
- Removed duplicate call to
fetchImage
Critical bugfix
Bugfixes
- Fixed a critical bug where the state was resetted to loading all the time
Improvements to underlying implementation
Refactoring
- Replaced
AnyViews andswitchstatement withGroupview +ifstatements +map
Tests
- More unit tests