The goal is to make the SwiftUI ScrollView unidirectional as in the spotify now playing screen. The UI can be scrolled up but if you swipe down the UI animates into the smaller version of the player.
I’ve tried to use DragGesture with simultaniousGesture, highpriorityGesture and also tried sequenced gestures. None seem to work.
I’m not even sure where to start. Any clues/tips will be highly appreciated.
Below is the desired behaviour.
RPReplay_Final1714741844.MP4