AlarmAttributes
struct · iOS 26.0+ · SDK 27.1
struct AlarmAttributes<Metadata> where Metadata : AlarmMetadataAn object that contains all information necessary for the alarm UI. This struct includes alerting, countdown, and paused states. You define all the alarm information when creating the attributes. When archiving the widget, the widget extension selects which state to display based on the ``AlarmPresentationState`` provided in the activity content state payload. The following example defines the attributes for the alarm UI. ```swift let attributes = AlarmAttributes( presentation: presentation, metadata: metadata, tintColor: Color.white) ```
Members (0)
This type has no directly callable members in this snapshot. See the framework’s skipped declarations for unsupported APIs.
Skipped declarations
2 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
AlarmAttributes.metadata
This declaration needs Swift generic type arguments. (no canonical witness for Metadata)
AlarmAttributes.init(presentation:metadata:tintColor:)
The containing type needs Swift generic type arguments. (no canonical witness for Metadata)