Initializer

init()

Creates a user defaults object initialized with the defaults for the app and current user.

Declaration

convenience init()

Discussion

This initializer is equivalent to passing nil to the init(suiteName:) initializer.

Use this initializer only if you're not using the shared standard user defaults.

See Also

Creating User Defaults Objects

init?(suiteName: String?)

Creates a user defaults object initialized with the defaults for the specified database name.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software