IsScrolling
IsScrolling copied to clipboard
Possible to get scroll callbacks?
This solution works great. I am just wondering is it possible to have callbacks in the form of completion handlers? If so, how?
I want to pass those completion handlers to another View so that certain actions can be performed.
For reference:
ScrollView(axes, showsIndicators: showIndicators) {
ZStack {
ScrollStatusMonitor(onScrollingStarted: {
onScrollingStarted()
}, onScrollingFinished: {
onScrollingFinished()
})
self.content
}
}
Thanks very much.