Initializer
init(_:)
iOS 16.0+
iPadOS 16.0+
Mac Catalyst 16.0+
macOS 13.0+
tvOS 16.0+
watchOS 9.0+
Creates a collation from a BCP 47 identifier.
init(_ identifier: String)
Parameters
identifierThe BCP 47 collation identifier, like
standardfor a language’s standard ordering, orphoneticfor phonetic ordering. The complete list of collation identifiers can be found here, under the key named “co”.