Inserts the specified domain name into the receiver’s search list.
SDKs
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Foundation
Declaration
func addSuite(named suiteName: String)
Parameters
suiteNameThe domain name to insert.
Discussion
The suite domain is similar to a bundle identifier string, but isn't necessarily tied to a particular application or bundle. A suite can be used to hold preferences that are shared between multiple applications.
The additional search lists of the suite domain are searched after the current domain, but before global defaults (that is, when a suite is added, the preferences subsystem first searches the app's user preferences, then searches again as though it were an app with a bundle identifier equal to suite, and then finally searches the global preferences). Passing global or the current application's bundle identifier is unsupported.