How to put a Header and Footer to the Top and Bottom of a View, respectively
I need the header and footer to stay at the top and bottom of a view, but I can’t get it to work.
The view is this:
Scrollview {
content
}
content is:
error()
VStack(spacing: 0) {
moreViews()
}
and error is:
VStack(alignment: .center) {
header
.frame(alignment: .top)
Spacer()
footer
.frame(alignment: .bottom)
}
.frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .top)
}