I am working (on what I believe) is a simplest Layout with list and sections:
List {
Section {
ForEach(content1) { /* ... *}
} header: {
CustomHeaderView()
}
Section {
ForEach(content2) { /* ... *}
} header: {
CustomHeaderView()
}
}
Everything works as expected, but as I scroll each of the Section headers becomes “sticky” i.e. it is glued to the top of the screen even when I scroll way past it. I think this is a common behavior, but for my use case I’d like to disable it.
At first glance there seem to be no modifiers on List or Section to do this, so perhaps there is a UIKit api that can be used to disable / enable this behavior (globally is fine)