Instance Methodswift 6.0.3FoundationInternationalization
locale(_:)
- iOS
- 15.0+
- macOS
- 12.0+
- tvOS
- 15.0+
- watchOS
- 8.0+
func locale(_ locale: Locale) -> FloatingPointFormatStyle<Value>.Attributed
func locale(_ locale: Locale) -> FloatingPointFormatStyle<Value>.Attributed
s30FoundationInternationalization24FloatingPointFormatStyleV10AttributedV6localeyAEyx_G0A10Essentials6LocaleVF
What are these?2LCOL
import FoundationInternationalization
struct Attributed
struct FloatingPointFormatStyle<Value> where Value : BinaryFloatingPoint
struct Locale
Locale
encapsulates information about linguistic, cultural, and technological conventions and standards. Examples of information encapsulated by a locale include the symbol used for the decimal separator in numbers and the way dates are formatted.
init(from decoder: any Decoder) throws
func format(_ value: Value) -> AttributedString
Returns an attributed string with NumberFormatAttributes.SymbolAttribute
and NumberFormatAttributes.NumberPartAttribute
.