regionCode

Returns the region code of the locale, or nil if it has none.

iOS
deprecated
macOS
deprecated
tvOS
deprecated
watchOS
deprecated
var regionCode: String? { get }

For example, for the locale “zh-Hant-HK”, returns “HK”.