Initializer
init(locale:)
iOS 15.0+
iPadOS 15.0+
Mac Catalyst 15.0+
macOS 12.0+
tvOS 15.0+
watchOS 8.0+
Creates a floating-point percent format style that uses the given locale.
init(locale: Locale = .autoupdatingCurrent)
Parameters
localeThe locale to use when formatting or parsing floating-point values. Defaults to
Locale.autoupdatingCurrent.