<!--
{
  "availability" : [
    "macOS: 10.3.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SecurityInterface",
  "identifier" : "/documentation/SecurityInterface/SFKeychainSettingsPanel",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Security Interface"
    ],
    "preciseIdentifier" : "c:objc(cs)SFKeychainSettingsPanel"
  },
  "title" : "SFKeychainSettingsPanel"
}
-->

# SFKeychainSettingsPanel

A panel or sheet that allows users to change their keychain settings.

```
class SFKeychainSettingsPanel
```

## Overview

Keychain settings include:

- Lock after a set period of inactivity
- Lock on sleep
- Synchronize using .Mac

The following figure shows an example of a keychain settings panel.

![Keychain settings panel](images/com.apple.securityinterface/media-1965595.png)

For more information, see [Keychain Services Programming Guide](https://developer.apple.com/library/archive/documentation/Security/Conceptual/keychainServConcepts/01introduction/introduction.html#//apple_ref/doc/uid/TP30000897).

## Topics

### Returning a shared keychain save panel object

[`shared()`](/documentation/SecurityInterface/SFKeychainSettingsPanel/shared())

Returns a shared keychain settings panel object.

### Displaying a sheet or panel

[`beginSheet(for:modalDelegate:didEnd:contextInfo:settings:keychain:)`](/documentation/SecurityInterface/SFKeychainSettingsPanel/beginSheet(for:modalDelegate:didEnd:contextInfo:settings:keychain:))

Displays a sheet that allows users to change keychain settings.

[`runModal(for:keychain:)`](/documentation/SecurityInterface/SFKeychainSettingsPanel/runModal(for:keychain:))

Displays a panel that allows users to change keychain settings.



---

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)