openDirectory(containerIdentifier:)
Requests an instance of the game-save directory.
Declaration
class func openDirectory(containerIdentifier: String? = nil) -> GameSaveSyncedDirectoryParameters
- containerIdentifier:
The identifier of the directory to request. If you pass
nil, this method uses the first container identifier listed in thecom.apple.developer.icloud-container-identifiersentitlements array.
Discussion
This method returns immediately, and starts syncing the directory in the background. To wait for syncing to complete, call the finishSyncing() method.