Initializer
init(code:locale:)
iOS 15.0+
iPadOS 15.0+
Mac Catalyst 15.0+
macOS 12.0+
tvOS 15.0+
watchOS 8.0+
Creates an integer currency format style that uses the given currency code and locale.
init(code: String, locale: Locale = .autoupdatingCurrent)
Parameters
codeThe currency code to use, such as
EURorJPY.localeThe locale to use when formatting or parsing integers. Defaults to
Locale.autoupdatingCurrent.