0.4.0
Updates:
- Changed to swift tools version 5.9
- Added support for swift 6 with strict concurrency
DeviceRotationEffectViewModifier
no longer public as it shouldn't need to be with.deviceRotationEffect()
available- ShimmerViewModifier inits changed so you can specify either a background Color or the BlendMode. Specifying both wouldn't make sense as you would be blending the combined color and background with the source view instead of just blending the shimmer color.
- MotionManager init no longer public. Instead a
.shared
singleton is used to ensure the CMMotionManager property is only created once per app. The.motionManger()
modifier should really be used to manage everything and should only be used once per app. - MotionManager no longer stops motion updates on deinit as it can't access the CoreMotion Manager off the main thread. It is instead done with stopMotionUpdates run in onDisappear inside the MotionManagerViewModifier.
- Motion updates will stop when the app goes into the background and start again when the app comes back. This should reset the world axis each time making it easier for effects to be visible when coming back to an app.
- Updated README
Bugfixes:
parallax()
view modifier fixed so that maxOffset clamps correctly- All shimmer effects no longer affect VoiceOver accessibility frames. Previously shimmer effects might block access to elements.
- ShimmerViewModifier blend mode was changed from
.normal
to.sourceAtop
when using a background color as the source view shouldn't be blended at all when doing so would affect performance.
Full Changelog: 0.3.1...0.4.0