---
title: preAlert
framework: alarmkit
role: symbol
role_heading: Instance Property
path: alarmkit/alarm/countdownduration-swift.struct/prealert
---

# preAlert

The duration applied before the alarm fires.

## Declaration

```swift
var preAlert: TimeInterval?
```

## Discussion

Discussion For example, this would be the duration of a timer.

## See Also

### Creating a countdown duration

- [init(preAlert:postAlert:)](alarmkit/alarm/countdownduration-swift.struct/init(prealert:postalert:).md)
- [postAlert](alarmkit/alarm/countdownduration-swift.struct/postalert.md)
