SwiftUI scrollview sticky header without using List
I’ve been fighting with GeometryReader
and .onChange(of: geo.frame(in: .global).minY)
for a long time trying to get this to work with no great success. Consider the following:
State transition in SwiftUI by scrolling in onAppear can be lost
If you use the onAppear
method to scroll to a SwiftUI view with the help of a ScrollViewProxy
, this can lead to the loss of the state transition in the view when using published values of an ObservableObject
.
SwiftUI viewAligned scrollTargetBehavior for ScrollView where scrollTargetLayout subviews are irregular in size
I’m trying to use SwiftUI’s viewAligned scrollTargetBehavior for a ScrollView where scrollTargetLayout subviews are irregular in size.
SwiftUI viewAligned scrollTargetBehavior for ScrollView where scrollTargetLayout subviews are irregular in size
I’m trying to use SwiftUI’s viewAligned scrollTargetBehavior for a ScrollView where scrollTargetLayout subviews are irregular in size.
ScrollView Keep offset when prepending data on top
i wanted to migrate my simple chat app to explore swiftUI,
Previously, I’m using collectionView for my chat view.