Contents

format(_:)

Formats a byte count measurment, using this style.

Declaration

func format(_ value: Measurement<UnitInformationStorage>) -> AttributedString

Parameters

  • value:

    The byte count measurement to format.

Return Value

A formatted representation of value, 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.