locale(_:)
Modifies the format style to use the specified locale.
Declaration
func locale(_ locale: Locale) -> FloatingPointFormatStyle<Value>.CurrencyParameters
- locale:
The locale to apply to the format style.
Return Value
A floating-point currency format style with the provided locale.
Discussion
Use this format style to change the locale used by an existing format style. To instead determine the locale used by this format style, use the locale property.