Dear All,
I want to maximise an Image above a Form. That should be easy enough but with the naive code, the Form is pushed out of the screen. I don't want to allow scrolling.
This is my code:
Image(systemName: "gear")
.resizable()
.scaledToFit()
Form {
Section("section 1") {
Text("text 1")
Text("text 2")
Text("text 3")
}
Section("section 2") {
Text("text 1")
Text("text 2")
Text("text 3")
}
}
.scrollDisabled(true)
Any hint on how to achieve that the Form is fully displayed and the Image dynamically maximised in the space that is left?
Thanks in advance!
Cheers
F
2
0
1.1k