Enumeration

NSWritingDirectionFormatType

Options for specifying writing direction used with writingDirection.

Declaration

enum NSWritingDirectionFormatType : Int

Overview

You can use the logical OR operator to combine these constants with NSWritingDirection.leftToRight or NSWritingDirection.rightToLeft when used with writingDirection to specify formatting controls defined by the Unicode Bidirectional Algorithm in Unicode Standard Annex #9.

Topics

Constants

case embedding

Text is embedded in text with another writing direction. For example, an English quotation in the middle of an Arabic sentence could be marked as being embedded left-to-right text.

case override

Enables character types with inherent directionality to be overridden when required for special cases, such as for part numbers made of mixed English, digits, and Hebrew letters to be written from right to left.