One Logo Pool Ball
Foundation · IOS API REFERENCE

Duration.TimeFormatStyle.Attributed

struct · iOS 16.0+ · SDK 27.1

@dynamicMemberLookup struct Attributed

Formats a duration as an attributed string with the `durationField` attribute key and `FoundationAttributes.DurationFieldAttribute` attribute. For example, two hour, 43 minute and 26.25 seconds can be formatted as an attributed string, "2:43:26.25" with the following run text and attributes: ``` 2 { durationField: .hours } : { nil } 43 { durationField: .minutes } : { nil } 26.25 { durationField: .seconds } ```

Members (0)

This type has no directly callable members in this snapshot. See the framework’s skipped declarations for unsupported APIs.

Skipped declarations

7 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

Duration.TimeFormatStyle.Attributed.locale(_:)

The iOS SDK compiler rejected this binding: 'TimeFormatStyle' is not a member type of struct 'Darwin.Duration' (aka 'Swift.Int32')

Duration.TimeFormatStyle.Attributed.format(_:)

The iOS SDK compiler rejected this binding: 'TimeFormatStyle' is not a member type of struct 'Darwin.Duration' (aka 'Swift.Int32')

Duration.TimeFormatStyle.Attributed.grouping(_:)

The iOS SDK compiler rejected this binding: 'TimeFormatStyle' is not a member type of struct 'Darwin.Duration' (aka 'Swift.Int32')

Duration.TimeFormatStyle.Attributed.subscript(dynamicMember:)

The iOS SDK compiler rejected this binding: 'TimeFormatStyle' is not a member type of struct 'Darwin.Duration' (aka 'Swift.Int32')

Duration.TimeFormatStyle.Attributed.subscript(dynamicMember:)

The iOS SDK compiler rejected this binding: 'TimeFormatStyle' is not a member type of struct 'Darwin.Duration' (aka 'Swift.Int32')

Duration.TimeFormatStyle.Attributed.discreteInput(before:)

The iOS SDK compiler rejected this binding: 'TimeFormatStyle' is not a member type of struct 'Darwin.Duration' (aka 'Swift.Int32')

Duration.TimeFormatStyle.Attributed.discreteInput(after:)

The iOS SDK compiler rejected this binding: 'TimeFormatStyle' is not a member type of struct 'Darwin.Duration' (aka 'Swift.Int32')

All Foundation types →