I have a UITextView
that has the property UITextAlignmentNatural
but I want to know if the text is aligned left-to-right or right-to-left. How can I tell if it's LTR or RTL
For more context, I'm trying to do this within my NSLayoutManager
subclass because I'd like to highlight the left-to-right and right-to-left cases with special formatting / outline.