kyle-n / HighlightedTextEditor

A SwiftUI view for dynamically highlighting user input
MIT License
726 stars 69 forks source link

Disable scrolling modifier #39

Closed cameronshemilt closed 3 years ago

cameronshemilt commented 3 years ago

Added a modifier to UIKit that allows for disabling scrolling.

kyle-n commented 3 years ago

@cameronshemilt Hey, sorry for never getting back to this PR. If you update to HLTE 2.0, it has a new .introspect() modifier that lets you set uiView.isScrollEnabled or any other UIKit property you need. See the release notes for more.

wdlgame commented 1 year ago

![上传截屏2023-03-10 12.36.30.png...]()

Due to the fact that the isScrollEnabled property is reset to true in the updateUIView method, it is not possible to use runIntrospect to set it to false.