Skip to content

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

languageCode

The language code to use for the new components instance.

script

The script to use for the new components instance.

region

The region to use for the new components instance.