FractionalPartDisplayStrategy

Specifies how a duration is displayed if it cannot be represented exactly with the allowed units.

iOS
16.0+
macOS
13.0+
tvOS
16.0+
watchOS
9.0+
struct FractionalPartDisplayStrategy

For example, you can change this option to show a duration of 1 hour and 15 minutes as “1.25 hr”, “1 hr”, or “1.5 hr” with different lengths and rounding rules when hour is the only allowed unit.