identifier
TypeScriptget identifier(): stringSwift declarationvar identifier: String { get set }The subdivision's identifier.
struct · iOS 16.0+ · SDK 27.1
struct SubdivisionA type that represents a subdivision of a region, such as a state in the US or a province in Canada.
get identifier(): stringSwift declarationvar identifier: String { get set }The subdivision's identifier.
set identifier(value: string)Swift declarationvar identifier: String { get set }The subdivision's identifier.
static subdivision(region: Locale_Region): Locale_SubdivisionSwift declarationstatic func subdivision(for region: Locale.Region) -> Locale.SubdivisionReturns the subdivision representing the given region as a whole. For example, returns a subdivision with the "uszzzz" identifier for the entire US region.
static initStringLiteral(value: string): Locale_SubdivisionSwift declarationinit(stringLiteral value: String)Creates a subdivision from a Unicode identifier as a string literal. - Parameter value: The subdivision's identifier.
get debugDescription(): stringSwift declarationvar debugDescription: String { get }A textual representation of this instance, suitable for debugging. Calling this property directly is discouraged. Instead, convert an instance of any type to a string by using the `String(reflecting:)` initializer. This initializer works with any type, and uses the custom `debugDescription` property for types that conform to `CustomDebugStringConvertible`: struct Point: CustomDebugStringConvertible { let x: Int, y: Int var debugDescription: String { return "(\(x), \(y))" } } let p = Point(x: 21, y: 30) let s = String(reflecting: p) print(s) // Prints "(21, 30)" The conversion of `p` to a string in the assignment to `s` uses the `Point` type's `debugDescription` property.
static init(identifier: string): Locale_SubdivisionSwift declarationinit(_ identifier: String)Creates a subdivision with the given identifier. - Parameter identifier: A unicode subdivision identifier, such as "usca" for California, US. Case-insensitive. The complete list of subdivision identifiers can be found [here](https://github.com/unicode-org/cldr/blob/maint/maint-40/common/validity/subdivision.xml), under the "subdivision" type.
No declarations were skipped in this snapshot.