Contents

format(_:)

Formats a numeric byte count, using this style.

Declaration

func format(_ value: Int64) -> AttributedString

Parameters

  • value:

    The 64-bit byte count 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. To format a single integer, use the BinaryInteger instance method formatted(_:), passing in an instance of ByteCountFormatStyle.Attributed, or formatted() to use a default style.