HomeiOS Developmentios - Change view top as an alternative of ScrollView bouncing

ios – Change view top as an alternative of ScrollView bouncing


I’ve a swiftUI view that incorporates a scrollView. This scroll view incorporates a bunch of views:

    public var physique: some View {
    MainScrollView(scrollStore: feedScrollStore) {
        VStack {
            logoView
                .body(top: 50)
            mainComponents
        }
        .body(width: UIScreen.primary.bounds.width)
    }
}

mainComponents is simply an array that incorporates bunch of views.

My scroll view bounds, that’s vital.
Now I’ve a state of affairs once I have to disable bounds and enhance top of logoView in different phrases I’ve to immitate a bouncing however with the logoView so I might set some customized animations to the brand whe consumer tryes to scroll down when the scrollView is on the highest.

How might I do this with swiftUI? Any concepts?

Thanks prematurely

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments