Skip to content

Type Method

show(length:rounded:increment:)

iOS 16.0+ iPadOS 16.0+ Mac Catalyst 16.0+ macOS 13.0+ tvOS 16.0+ watchOS 9.0+
Displays the remaining part as the fractional part of the smallest unit.
static func show(length: Int, rounded rule: FloatingPointRoundingRule = .toNearestOrEven, increment: Double? = nil) -> Duration.UnitsFormatStyle.FractionalPartDisplayStrategy

Parameters

length

The length of the fractional part.

rule

Rounding rule for the remaining value.

increment

Rounding increment for the remaining value.