Build a stretchy image header in SwiftUI using the visualEffect() modifier, scaling the image on pull-down without tracking scroll offset or modifying its frame: nilcoalescing.com/blog/Stret…
Build a stretchy image header in SwiftUI using the visualEffect() modifier, scaling the image on pull-down without tracking scroll offset or modifying its frame: nilcoalescing.com/blog/Stret…
I refactored the UI to use .visualEffect, making those scroll animations and transitions buttery smooth. Much cleaner code, much better feel. 🚀💻
#iOSDev#SwiftUI#BuildInPublic
The visualEffect() modifier gives you a geometry proxy without using GeometryReader, so you can add blur, hue rotation, and other effects based on a view's position without affecting layout. hackingwithswift.com/quick-s…
SwiftUI introduced a view modifier called visualEffect. This modifier allows us to attach a set of animatable visual effects by accessing layout information of the view. Here is the example of sticky header view that can be placed in a scroll view.
swiftwithmajid.com/2023/11/0…