New blog post! How to implement a stretchable header like the Spotify one in #SwiftUI. The header works with any content, but we'll use it to mimic the Spotify one for fun. The preview that you see here is made with SwiftUI previews and this header.
https://danielsaidi.com/blog/2023/02/06/adding-a-stretchable-header-to-a-swiftui-scroll-view
If the blog post is too long, this is actually all that's needed to implement the header view. The rest is just explanations, previews, things to consider etc.
@danielsaidi very nice article there. I will try it out later today, looks like a pleasantly simple way to get a nice ui effect.
@peterH I'd love to hear how you found using it! :)