---
title: minimumAllowedDuration
framework: healthkit
role: symbol
role_heading: Instance Property
path: healthkit/hksampletype/minimumallowedduration
---

# minimumAllowedDuration

The minimum duration if the sample type has a restricted duration.

## Declaration

```swift
var minimumAllowedDuration: TimeInterval { get }
```

## Return Value

Return Value The minimum time interval between the sample’s startDate and endDate properties.

## Discussion

Discussion This method throws an exception if isMinimumDurationRestricted is false.

## See Also

### Checking the Duration Restriction

- [isMinimumDurationRestricted](healthkit/hksampletype/isminimumdurationrestricted.md)
- [isMaximumDurationRestricted](healthkit/hksampletype/ismaximumdurationrestricted.md)
- [maximumAllowedDuration](healthkit/hksampletype/maximumallowedduration.md)
