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
Hi Timo2303,
Avoiding Form altogether and designing a nice report instead, as you indicated, is actually a very good solution.
It seems Forms are not made for this purpose as their dimensions are just the portion displayed on screen at any time.
Thank you very much for the hint and the code!
Cheers F