rajdeep / proton

Purely native and extensible rich text editor for iOS and macOS Catalyst apps
Other
1.26k stars 81 forks source link

Publicly expose the underlying UIScrollView #223

Closed MilesV64 closed 11 months ago

MilesV64 commented 1 year ago

It's often important to have access to a UIScrollView powering a view in order to update UI on scroll, get the current offset, and attach/intercept gesture recognizers (think a pull down animation that only pulls down when the scroll view is scrolled to the top, like dismissing an iOS modal view controller).

It would be great to have access to the scroll view powering the EditorView for those reasons. I understand not wanting the consumer to break the editor by directly modifying the scrollview, but somehow it would be really good to be able to at least:

rajdeep commented 1 year ago

@MilesV64, I'll put this in my backlog to look at. Hopefully, I'll get on this soon.

rajdeep commented 11 months ago

@MilesV64, requested changes have been made in the latest main (#226). Will be included in the upcoming release.

You can receive scrollView delegae events by setting up scrollViewDelegate on EditorView.