swiftui-library / scrollview-reactive-header

ScrollView that supports a parallax header image and static overlay.
55 stars 3 forks source link

ScrollViewReactiveHeader

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

To see the rest of the SwiftUI Library, visit our website.

https://user-images.githubusercontent.com/8763719/132362666-99609c48-0762-4351-b532-49ae03dda274.mov

Using ScrollViewReactiveHeader is easy:

ScrollViewReactiveHeader(header: {

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

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

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

Future Todos