skiptools / skip-ui

SwiftUI for Android
https://skip.tools
GNU Lesser General Public License v3.0
128 stars 14 forks source link

Unsupported ScrollView modifiers for view aligned / paging behavior... #41

Open jeffc-dev opened 3 months ago

jeffc-dev commented 3 months ago

Skip does not currently support the following modifiers to ScrollView and/or its contents:

scrollTargetBehavior (.viewAligned, .paged, etc) Link scrollClipDisabled Link scrollTargetLayout Link .scrollPosition(id:anchor:) Link

Without these, it is not easily possible to create paged or view-aligned scroll views (esp. with subviews that "peek" through on either side), or with a position that can be controlled programmatically.

Common examples of this sort of behavior in use can be found in the App Store, TV, Books, and Music apps. I've attached an example from the TV app as reference.

image

I don't know if this is easily doable with Jetpack Compose, but if feasible it'd be nice to have it supported.