Releases: crelies/RemoteImage
Releases · crelies/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
StateObject
property 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
RemoteImageType
phAsset
is 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
AnyView
s andswitch
statement withGroup
view +if
statements +map
Tests
- More unit tests