<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AlarmKit",
  "identifier" : "/documentation/AlarmKit/Alarm/CountdownDuration-swift.struct/init(preAlert:postAlert:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "AlarmKit"
    ],
    "preciseIdentifier" : "s:8AlarmKit0A0V17CountdownDurationV8preAlert04postF0AESdSg_AHtcfc"
  },
  "title" : "init(preAlert:postAlert:)"
}
-->

# init(preAlert:postAlert:)

Creates an instance of a countdown duration.

```
init(preAlert: TimeInterval?, postAlert: TimeInterval?)
```

## Parameters

`preAlert`

The duration applied before the alarm fires.

`postAlert`

The duration applied after the alarm has alerted at least once and
moves back to the countdown state.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)