You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- In-memory text mutations with an API similar to text views.
19
+
- Consistent behavior across platforms.
20
+
21
+
22
+
## Approach
23
+
24
+
We operate on the abstraction of a `Buffer` to perform changes.
25
+
26
+
This enables usage of the declarative API on multiple buffers at once without having to put the text into a UI component to render.
27
+
28
+
A `NSTextView` is a buffer. You can use this declarative API to make changes to text views on screen.
29
+
30
+
You can also use purely in-memory buffers for text mutations of things you don't want to render. This allows you to read multiple files into buffers in your app and use the declarative API to change their contents, while only rendering a single selected file in a text view.
31
+
32
+
This is harnessed by [`DeclarativeTextKit`](https://github.com/CleanCocoa/DeclarativeTextKit/).
0 commit comments