In Cocoa, there is this wonderful declare which creates a rich text editor like TextEdit from the regular TextArea :
declare function documentView lib "Cocoa" selector "documentView"(obj_id as Integer) as Ptr
declare sub setUsesInspectorBar lib "Cocoa" selector "setUsesInspectorBar:" (obj_id as Ptr, value as Boolean)
setUsesInspectorBar(ptr(documentView(me.Handle)), true)
if iOSText area is a subclass of UITextView, then you’re in for some issues.
I attempted to create a SyntaxHighligting edtor in Swift using UITextView, and it did not work out, research found that there are known issues when attempting to do Attributed Text (iOs nomenclature for StyledText) if the amount of text exceeded a relatively small volume.
I opted to create my own class… which while it worked very well… it slowed down after a few megabytes of document.
I don’t need lots of text. Check Writer prints an accompanying text on a letter-size voucher, under or above a standard 3,5" high check. Usually less than 500 characters.