Post

Replies

Boosts

Views

Activity

Reply to Is there a way to get exact spacing of a text file to match the formatting in UI Text View?
The answer is "MONOSPACED". The first step was to try to understand exactly what the NSAttributedString model was. Then to add an attribute to the NSDictionary that is associated with the model. Placing Monospaced of some size and weight, it was able to get the Text Editor to match the alignment in Text View. I found this to be what I needed to do. [attributesDictionary setObject:[UIFont monospacedSystemFontOfSize:12 weight:20] forKey:NSFontAttributeName]; The documentation has a level of confusion in it such that I had to try for a week to understand how to manipulate the Attributes and apply them to "self.myTextView.attributedText". This story wasn't evident at first. Now I'm clear....Hopefully this helps someone
May ’22