Instance Method
identifier(_:)
iOS 16.0+
iPadOS 16.0+
Mac Catalyst 16.0+
macOS 13.0+
tvOS 16.0+
watchOS 9.0+
Returns the locale identifier, in the specified standard format.
func identifier(_ type: Locale.IdentifierType) -> String
Parameters
typeThe standard locale identifier format to use for the returned string.
Return Value
The locale identifier, formatted in accordance with the specified identifier type.