Initializer
init(languageCode:script:region:)
iOS 16.0+
iPadOS 16.0+
Mac Catalyst 16.0+
macOS 13.0+
tvOS 16.0+
watchOS 9.0+
Creates a language components instance from a given language code, script, and region.
init(languageCode: Locale.LanguageCode? = nil, script: Locale.Script? = nil, region: Locale.Region? = nil)
Parameters
languageCodeThe language code to use for the new components instance.
scriptThe script to use for the new components instance.
regionThe region to use for the new components instance.