Skip to content

Introduce UITextView support #3

Description

@DivineDominion

Imported from CleanCocoa/DeclarativeTextKit#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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions