Skip to content

Initializer

init(_:)

iOS 16.0+ iPadOS 16.0+ Mac Catalyst 16.0+ macOS 13.0+ tvOS 16.0+ watchOS 9.0+
Creates a subdivision with the given identifier.
init(_ identifier: String)

Parameters

identifier

A unicode subdivision identifier, such as “usca” for California, US. Case-insensitive. The complete list of subdivision identifiers can be found here, under the “subdivision” type.