This is what I've done so far:
Button {
page.load(page.backForwardList.backList.last!)
} label: {
Image(systemName: "chevron.backward")
}
.disabled(page.backForwardList.backList.isEmpty)
Aren't Lists using a ScrollView internally? I am constantly perplexed over how differently they are treated. See https://developer.apple.com/forums/thread/758922 for another example.
This is what I've done so far:
Button {
page.load(page.backForwardList.backList.last!)
} label: {
Image(systemName: "chevron.backward")
}
.disabled(page.backForwardList.backList.isEmpty)
Aren't Lists using a ScrollView internally? I am constantly perplexed over how differently they are treated. See https://developer.apple.com/forums/thread/758922 for another example.