Structure

ByteCountFormatter.Units

Specifies the units appropriate for the formatter to display. Specifying any units explicitly causes just those units to be used in showing the number.

Declaration

struct Units

Topics

Constants

static var useBytes: ByteCountFormatter.Units

Displays bytes in the formatter content.

static var useKB: ByteCountFormatter.Units

Displays kilobytes in the formatter content.

static var useMB: ByteCountFormatter.Units

Displays megabytes in the formatter content.

static var useGB: ByteCountFormatter.Units

Displays gigabytes in the formatter content.

static var useTB: ByteCountFormatter.Units

Displays terabytes in the formatter content.

static var usePB: ByteCountFormatter.Units

Displays petabyte in the formatter content.

static var useEB: ByteCountFormatter.Units

Displays exabytes in the formatter content.

static var useZB: ByteCountFormatter.Units

Displays zettabytes in the formatter content.

static var useYBOrHigher: ByteCountFormatter.Units

Displays yottabytes in the formatter content.

static var useAll: ByteCountFormatter.Units

Can use any unit in the formatter content.

Relationships

Conforms To

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software