This PR adds a contentInsets parameter that lets users set an inset object for the editor. It also updates STTextView to be able to set the left inset correctly. When left nil the scroll view will use automatic insets.
This also doesn't override the overscroll option, but rather adds the overscroll after the insets are applied.
Description
This PR adds a
contentInsets
parameter that lets users set an inset object for the editor. It also updatesSTTextView
to be able to set the left inset correctly. When leftnil
the scroll view will use automatic insets.This also doesn't override the overscroll option, but rather adds the overscroll after the insets are applied.
Related Issues
Screenshots
Adding top and left insets:
Adding left and bottom insets (scroller is also inset):