Initializer
init(stringLiteral:)
iOS 16.0+
iPadOS 16.0+
Mac Catalyst 16.0+
macOS 13.0+
tvOS 16.0+
watchOS 9.0+
Creates a region from a BCP 47 identifier as a string literal.
init(stringLiteral value: String)
Parameters
valueA BCP 47 identifier, such as
USfor the United States. This parameter is case-insensitive.