Skip to content

Instance Property

region

iOS 16.0+ iPadOS 16.0+ Mac Catalyst 16.0+ macOS 13.0+ tvOS 16.0+ watchOS 9.0+
The region used by the locale.
var region: Locale.Region? { get }

Discussion

This property corresponds to the rg key of the Unicode BCP 47 extension.

For locale instances created with the rg specifier (such as en-GB@rg=US), or with a custom Locale.Components, this property represents the custom region. Otherwise, it represents the language’s region.