IsScrolling icon indicating copy to clipboard operation
IsScrolling copied to clipboard

Possible to get scroll callbacks?

Open prgorasiya opened this issue 1 year ago • 2 comments

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.

prgorasiya avatar Feb 06 '23 14:02 prgorasiya