harryworld
OP
Created
Replies
4
Boosts
0
Views
2.4k
Participants
3
It is not. UITextView requires UITextStorage as a backing (and provides access to it via its textStorage property).
Thanks for confirmation.
So basically I have to subclass UIView and implements UITextInput to start with? On Mac, this may mean subclassing NSView and implements NSTextInput / NSTextInputClient?
I won't comment on AppKit (I don't have the background to be reliable), but for UIKit, yes, that should be possible.
Just conforming to NSTextStorageObserving protocol.