Structure
Duration.UnitsFormatStyle.UnitWidth
iOS 16.0+
iPadOS 16.0+
Mac Catalyst 16.0+
macOS 13.0+
tvOS 16.0+
watchOS 9.0+
Specifies the width of the unit and the spacing of the value and the unit.
struct UnitWidth
Topics
Initializers
Instance Methods
Type Properties
static var abbreviated: Duration.UnitsFormatStyle.UnitWidthShows the abbreviated unit name, such as “3 hr” for a 3-hour duration in the en_US locale.static var condensedAbbreviated: Duration.UnitsFormatStyle.UnitWidthShows the abbreviated unit name with a condensed space between the value and unit, such as “3hr” for a 3-hour duration in the en_US locale.static var narrow: Duration.UnitsFormatStyle.UnitWidthShows the shortest unit name, such as “3h” for a 3-hour duration in the en_US locale.static var wide: Duration.UnitsFormatStyle.UnitWidthShows the full unit name, such as “3 hours” for a 3-hour duration in the en_US locale.
Relationships
Conforms To
Swift.DecodableSwift.EncodableSwift.EquatableSwift.HashableSwift.SendableSwift.SendableMetatype