jazzedge
11/29/2017 - 5:18 PM

Swift - Cloudkit: Check if valid iCloud account available

CKContainer.defaultContainer().accountStatusWithCompletionHandler{ status, error in
   guard status == .Available else { return }
   //The user’s iCloud account is available..
}