---
title: autosavesConfiguration
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstoolbar/autosavesconfiguration
---

# autosavesConfiguration

A Boolean value that indicates whether the toolbar autosaves its configuration.

## Declaration

```swift
var autosavesConfiguration: Bool { get set }
```

## Discussion

Discussion When the value of this property is true, the toolbar automatically writes any configuration changes to user defaults. It associates the configuration details with the value in its identifier property. If mutliple toolbars share the same identifier, they all share the same configuration settings. When the value of this property is false, the toolbar doesn’t save changes and reverts to the default configuration when the app relaunches. The default of this property is false. important: If you allow people to customize your app’s toolbars, enable this property to save the changes they make. Alternatively, use the configuration property and setConfiguration(_:) method to manage the autosave process yourself.

## See Also

### Related Documentation

- [allowsUserCustomization](appkit/nstoolbar/allowsusercustomization.md)

### Autosaving the configuration

- [configuration](appkit/nstoolbar/configuration.md)
- [setConfiguration(_:)](appkit/nstoolbar/setconfiguration(_:).md)
