Instance Method


Adds the contents of the specified dictionary to the registration domain.


func register(defaults registrationDictionary: [String : Any])



The dictionary of keys and values you want to register.


If there is no registration domain, one is created using the specified dictionary, and registrationDomain is added to the end of the search list.

The contents of the registration domain are not written to disk; you need to call this method each time your application starts. You can place a plist file in the application's Resources directory and call register(defaults:) with the contents that you read in from that file.

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