Structure
Duration.UnitsFormatStyle.ZeroValueUnitsDisplayStrategy
iOS 16.0+
iPadOS 16.0+
Mac Catalyst 16.0+
macOS 13.0+
tvOS 16.0+
watchOS 9.0+
Specifies how zero value units are handled.
struct ZeroValueUnitsDisplayStrategy
Topics
Initializers
Type Properties
static var hide: Duration.UnitsFormatStyle.ZeroValueUnitsDisplayStrategyExcludes zero-value units from the formatted string.
Type Methods
static func show(length: Int) -> Duration.UnitsFormatStyle.ZeroValueUnitsDisplayStrategyDisplays zero-value units with zero padding to the specified length.
Relationships
Conforms To
Swift.DecodableSwift.EncodableSwift.EquatableSwift.HashableSwift.SendableSwift.SendableMetatype