Skip to content

Instance MethodFoundationInternationalization

locale(_:)

iOS 15.0+ iPadOS 15.0+ Mac Catalyst 15.0+ macOS 12.0+ tvOS 15.0+ watchOS 8.0+
Modifies the format style to use the specified locale.
func locale(_ locale: Locale) -> FloatingPointFormatStyle<Value>.Percent

Parameters

locale

The locale to apply to the format style.

Return Value

A floating-point percent format style modified to use the provided locale.