---
title: lockInterval
framework: security
role: symbol
role_heading: Instance Property
path: security/seckeychainsettings/lockinterval
---

# lockInterval

The number of seconds to wait before the keychain locks.

## Declaration

```swift
var lockInterval: UInt32
```

## Discussion

Discussion If you set useLockInterval to false, set lockInterval to INT_MAX to indicate that the keychain never locks.
