I’m making an app with Swift and I’ve a query about lists.
// Show the listing of the wrong phrases
Record {
ForEach(arrayToPass, id: .self) { index in
Textual content("・ (displayeWord[index].phrase) : (displayeWord[index].meaning1) ")
.foregroundStyle(.black)
.font(.title2)
.padding(10)
.daring()
.listRowBackground(Colour.white)
}
}
.body(width: 390, peak: 400)
.scrollContentBackground(.hidden)
As proven within the pic connected down under, the listing will be scrolled and dragged down, which makes some area above the listing. I wish to repair the highest of the listing though the listing is scrollable.
That may be appreciated when you might assist me out. Thanks.