kyle-n / HighlightedTextEditor

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

Feature/viewer mode #41

Closed NobreMateus closed 3 years ago

NobreMateus commented 3 years ago

I created a way to see the text editor just in a viewer mode.

kyle-n commented 3 years ago

Thank you for opening this pull request! I'm going to decline this, not because it's bad work but because I'm actually preparing a 2.0.0 release that will fix this problem.

2.0 will have an introspect(editor: UITextView) modifier that just gives you access to the whole UITextView. That way this package doesn't have to play whack-a-mole trying to replicate the whole UIKit API.

kyle-n commented 3 years ago

@NobreMateus If you update to HLTE 2.0, it has a new .introspect() modifier that will let you set textView.isEditable. See the release notes for more.

NobreMateus commented 3 years ago

I'll see. Thank you so much.