Structure
ByteCountFormatStyle.Units
iOS 15.0+
iPadOS 15.0+
Mac Catalyst 15.0+
macOS 12.0+
tvOS 15.0+
watchOS 8.0+
The units to use when formatting a byte count, such as kilobytes or gigabytes.
struct Units
Topics
Initializers
Instance Properties
Type Properties
static var all: ByteCountFormatStyle.UnitsA value that allows the use of all byte-count units.static var bytes: ByteCountFormatStyle.UnitsA value that indicates a format style should express byte counts in individual bytes.static var `default`: ByteCountFormatStyle.UnitsA value that indicates a format style should use the most appropriate units to express a byte count.static var eb: ByteCountFormatStyle.UnitsThe exabytes unit.static var gb: ByteCountFormatStyle.UnitsThe gigabytes unit.static var kb: ByteCountFormatStyle.UnitsThe kilobytes unit.static var mb: ByteCountFormatStyle.UnitsThe megabytes unit.static var pb: ByteCountFormatStyle.UnitsThe petabytes unit.static var tb: ByteCountFormatStyle.UnitsThe terabytes unit.static var ybOrHigher: ByteCountFormatStyle.UnitsA value that indicates a format style should express byte counts as yottabytes or higher.static var zb: ByteCountFormatStyle.UnitsThe zettabytes unit.
Relationships
Conforms To
Swift.DecodableSwift.EncodableSwift.EquatableSwift.ExpressibleByArrayLiteralSwift.HashableSwift.OptionSetSwift.RawRepresentableSwift.SendableSwift.SendableMetatypeSwift.SetAlgebra