<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AlarmKit",
  "identifier" : "/documentation/AlarmKit/AlarmPresentationState/Mode-swift.enum/Countdown/init(totalCountdownDuration:previouslyElapsedDuration:startDate:fireDate:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "AlarmKit"
    ],
    "preciseIdentifier" : "s:8AlarmKit0A17PresentationStateV4ModeO9CountdownV05totalF8Duration017previouslyElapsedH09startDate04fireL0AGSd_Sd10Foundation0L0VANtcfc"
  },
  "title" : "init(totalCountdownDuration:previouslyElapsedDuration:startDate:fireDate:)"
}
-->

# init(totalCountdownDuration:previouslyElapsedDuration:startDate:fireDate:)

Creates an instance of a countdown.

```
init(totalCountdownDuration: TimeInterval, previouslyElapsedDuration: TimeInterval, startDate: Date, fireDate: Date)
```

## Parameters

`totalCountdownDuration`

The total duration of the countdown.

`previouslyElapsedDuration`

The amount of time that has passed. If the countdown was
never paused or resumed, the value is zero.

`startDate`

The date that the countdown started. If the countdown was never paused, the date is when the
countdown started.

`fireDate`

The date at which the countdown starts.

---

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)