Swiftpack.co -  swiftui-library/scrollview-reactive-header as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
ScrollView that supports a parallax header image and static overlay.
.package(url: "https://github.com/swiftui-library/scrollview-reactive-header.git", from: "1.0.0")


A replacement ScrollView that provides a header with subtle scroll animations.


Using ScrollViewReactiveHeader is easy:

ScrollViewReactiveHeader(header: {

        .frame(height: 300)
}, headerOverlay: {

        .frame(height: 300)
}, body: {

    // Note: This view will be placed inside a ScrollView
}, configuration: .init(showStatusBar: true, backgroundColor: .white))

Future Todos

  • ☐ Make headerOverlay interactive. At the moment, taps will be blocked by the overlaid ScrollView
  • ☐ Add optional callback that reports internally-calculated scroll offset.
  • ☐ Remove dependency on GeometryReader for calculating status bar height. (at the moment, setting .edgesIgnoringSafeArea(.top) will interfere with this package's ability to calculate the height of the status bar. )


Stars: 13
Last commit: 1 week ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Submit a free job ad (while I'm testing this). The analytics numbers for this website are here.

Release Notes

1 week ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics