[ad_1]
The way in which I used to be capable of repair this behaviour is so as to add a faux view to the hierarchy in order that the scrollview will not be the bottom view of the display screen, because it appears if the scrollview is the bottom view it routinely provides this sticky behaviour. Simply including a aircraft VStack or EmptyView doesn’t appear to work both as its capable of inform that the scrollview is one way or the other nonetheless the bottom view.
VStack {
// Stops massive navigation titles from sticking to the scrollview if the scroll view is the bottom view
FakeView().fixedSize()
// Your earlier root scrollview
ScrollView {
}
}
struct FakeView: UIViewRepresentable {
public func makeUIView(context: UIViewRepresentableContext<Self>) -> UIView {
UIView()
}
public func updateUIView(_ uiView: UIView, context: UIViewRepresentableContext<Self>) {
}
}
[ad_2]

