Creates an orthography object with the specified dominant script and language map.


init(dominantScript script: String, languageMap map: [String : [String]])



The dominant script.


A dictionary mapping ISO 15924 script codes to arrays of BCP-47 language tags.

Return Value

An orthography object initialized with the specified script and language map.


You typically use the defaultOrthography(forLanguage:) method to create orthography objects with automatic language mapping. Use this initializer only if you need to override the script associated with one or more languages.

See Also

Creating Orthography Objects

class func defaultOrthography(forLanguage: String) -> Self

Creates and returns an orthography object with the default language map for the specified language.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software