subdivision(for:)
Returns the subdivision representing the given region as a whole.
Declaration
static func subdivision(for region: Locale.Region) -> Locale.SubdivisionParameters
- region:
A region to represent as a subdivision.
Return Value
A subdivision that represents the entire region.
Discussion
For example, this method returns a subdivision with the uszzzz identifier for the entire US region.