init(identifier:)
Creates a container for the specified identifier.
Declaration
init(identifier containerIdentifier: String)Parameters
- containerIdentifier:
The bundle identifier of the app with the container that you want to access. The bundle identifier must be in the app’s
com.apple.developer.icloud-container-identifiersentitlement. This parameter must not benil.
Discussion
The specified identifier must correspond to one of the containers in the iCloud capabilities section of your Xcode project. Including the identifier with your app’s capabilities adds the corresponding entitlements to your app. To access your app’s default container, use the default() method instead.