How can I have ScrollTargetBehaviour change based off scroll position?
I’m working on an app where I have one or more featured, full screen views presented before the rest of the “explore” content (think home page on Spotify).
Why does LazyHStack render the first 3 views therefore calling onAppear too early?
I want to toggle a Boolean state when a view is visible in the phone screen.
I’ve made the LazyHStack as below however, the following 2 views, somehow is already appeared. I tried using the new API onScrollVisibilityChange(threshold: 1,..)
and the result is the same.
SwiftUI nested scroll view, unable to scroll vertically if horizontal content is scrolling
I am trying to implement nested scroll views in SwiftUI. Consider the following minimal example: