regionCode

Returns the region code of the locale. If the rg subtag is present, the value of the subtag will be used. For example, returns “GB” for “en_US@rg=gbzzzz” locale. If the localeIdentifier doesn’t contain a region, returns nil.

Declaration

var regionCode: String? { get }