CodeEditApp / CodeEditSourceEditor

A code editor view written in Swift powered by tree-sitter.
https://codeeditapp.github.io/CodeEditSourceEditor/documentation/codeeditsourceeditor
MIT License
504 stars 74 forks source link

Optionally set text view to read only #161

Closed austincondiff closed 1 year ago

austincondiff commented 1 year ago

Description

This PR adds isEditable to pass through to STTextView. Setting this to false makes the text view read-only.

Checklist

austincondiff commented 1 year ago

Currently, whenever isEditable is set to false, the text view renders with no text content. There may be something wrong with my implementation but if not it may be an issue with STTextView. Currently investigating this further. If anyone has any insight into why this might be happening please let me know.

austincondiff commented 1 year ago

Sorry, that last commit message is incorrect, it should read "if isEditable is false."