CleanCocoa / CleanCocoa/TextBuffer

Introduce UITextView support

Open
#3 0 comments 0 reactions 0 assignees View on GitHub
enhancement good first issue help wanted
Dominant language
Swift
Stars
10
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Imported from https://github.com/CleanCocoa/DeclarativeTextKit/issues/2

--------

Since `UITextView` and `NSTextView` share most of the underpinnings, including being backed by UTF-16 `NSStrings`, adding UIKit support should consist of either

- adding an adapter like `NSTextViewBuffer` but for `UITextView`,
- use a `TextViewBuffer` (sans prefix) for both.

With conditional compilation, `#if os(macOS)` around the `NSTextView` property declaration and initializer should do the trick _iff_ the API really is exactly the same.

- [ ] Add iOS, iPad, ... as deployment targets
- [ ] Re-use or add tests for `UITextView`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.