---
title: init()
framework: foundation
role: symbol
role_heading: Initializer
path: foundation/userdefaults/init()
---

# init()

Creates a new defaults object and initializes it with the app’s current settings.

## Declaration

```swift
convenience init()
```

## Discussion

Discussion Use this method to create a new defaults object to manage the app’s settings. If you add a domain using the addSuite(named:) method, the returned object retrieves values in that domain in addition to the standard ones. Custom domains remain in the search list until you remove them or release the object. When you write setting values using this object, it writes them to the current app’s settings.

## See Also

### Creating a user defaults object

- [standard](foundation/userdefaults/standard.md)
- [init(suiteName:)](foundation/userdefaults/init(suitename:).md)
