Contents

isISOLanguage

A Boolean value that indicates whether this language code is in the list of ISO-defined languages.

Declaration

var isISOLanguage: Bool { get }

Discussion

The following code snippet illustrates use of the isISOLanguage value.

let enIsISO = Locale.LanguageCode("en").isISOLanguage // true
let gibberishIsISO = Locale.LanguageCode("gibberish").isISOLanguage // false

See Also

Examining language code properties