A SwiftUI tutorial that builds a resizable header which shrinks and hides as the user scrolls, using the ScrollView scroll APIs. It is aimed at developers who already write SwiftUI and want to add scroll-linked header animations to iOS 18 apps.
What you’ll learn
✓Build a sticky header that resizes as a ScrollView scrolls
✓Hide a header on scroll using SwiftUI scroll APIs
✓Animate header content with scroll-driven geometry in SwiftUI