Instance Methodswift 6.0.3FoundationInternationalization->FoundationEssentials
identifier(_:)
Returns the ISO code of the given identifier type. Returns nil if the language isn’t a valid ISO language, or if the specified identifier type isn’t available to the language.
- iOS
- 16+
- macOS
- 13+
- tvOS
- 16+
- watchOS
- 9+
func identifier(_ type: Locale.LanguageCode.IdentifierType) -> String?