Instance Method
format(_:)
iOS 15.0+
iPadOS 15.0+
Mac Catalyst 15.0+
macOS 12.0+
tvOS 15.0+
watchOS 8.0+
Formats a value, using this style.
func format(_ value: Self.FormatInput) -> Self.FormatOutput
Parameters
valueThe value to format.
Return Value
A representation of value, in the FormatOutput type, formatted according to the style’s configuration.
Discussion
Use this method when you want to create a single style instance, and then use it to format multiple values.