     }
 }
 
-private func requestPermission(_ container: CKContainer, permission: CKContainer.Application.Permissions, completion: @escaping (CapabilityStatus) -> Void) {
+private func requestPermission(_ container: CKContainer, permission: CKContainer.ApplicationPermissions, completion: @escaping (CapabilityStatus) -> Void) {
     DispatchQueue.main.async {
         container.requestApplicationPermission(permission) { requestStatus, requestError in
             switch requestStatus {

    public static let name = "iCloudContainer"

    private let container: CKContainer
    private let permissions: CKContainer.Application.Permissions

    public init(container: CKContainer, permissions: CKContainer.Application.Permissions = []) {
        self.container = container
        self.permissions = permissions
    }

    }
}

private func verifyAccountStatus(_ container: CKContainer, permission: CKContainer.ApplicationPermissions, shouldRequest: Bool, completion: @escaping (CapabilityStatus) -> Void) {

    container.accountStatus { accountStatus, accountError in

