---
title: useLockInterval
framework: security
role: symbol
role_heading: Instance Property
path: security/seckeychainsettings/uselockinterval
---

# useLockInterval

A Boolean value indicating whether the keychain automatically locks after a certain period of time.

## Declaration

```swift
var useLockInterval: DarwinBoolean
```

## Discussion

Discussion Use lockInterval to indicate the time in seconds after which the keychain should automatically be locked.
