Documentation Archive Developer
Search

CloudKit Changes for Swift

CloudKit

Added CKError.init(_nsError: NSError)
Added CKError.partialErrorsByItemID
Added CKShare
Declaration
From
enum CKAccountStatus : Int {
    case CouldNotDetermine
    case Available
    case Restricted
    case NoAccount
}
To
enum CKAccountStatus : Int {
    case couldNotDetermine
    case available
    case restricted
    case noAccount
}

Declaration
From
case Available
To
case available

Declaration
From
case CouldNotDetermine
To
case couldNotDetermine

Declaration
From
case NoAccount
To
case noAccount

Declaration
From
case Restricted
To
case restricted

DeclarationProtocols
From
struct CKApplicationPermissions : OptionSetType {
    init(rawValue rawValue: UInt)
    static var UserDiscoverability: CKApplicationPermissions { get }
}
OptionSetType
To
struct CKApplicationPermissions : OptionSet {
    init(rawValue rawValue: UInt)
    static var userDiscoverability: CKApplicationPermissions { get }
    func intersect(_ other: CKApplicationPermissions) -> CKApplicationPermissions
    func exclusiveOr(_ other: CKApplicationPermissions) -> CKApplicationPermissions
    mutating func unionInPlace(_ other: CKApplicationPermissions)
    mutating func intersectInPlace(_ other: CKApplicationPermissions)
    mutating func exclusiveOrInPlace(_ other: CKApplicationPermissions)
    func isSubsetOf(_ other: CKApplicationPermissions) -> Bool
    func isDisjointWith(_ other: CKApplicationPermissions) -> Bool
    func isSupersetOf(_ other: CKApplicationPermissions) -> Bool
    mutating func subtractInPlace(_ other: CKApplicationPermissions)
    func isStrictSupersetOf(_ other: CKApplicationPermissions) -> Bool
    func isStrictSubsetOf(_ other: CKApplicationPermissions) -> Bool
}
extension CKApplicationPermissions {
    func union(_ other: CKApplicationPermissions) -> CKApplicationPermissions
    func intersection(_ other: CKApplicationPermissions) -> CKApplicationPermissions
    func symmetricDifference(_ other: CKApplicationPermissions) -> CKApplicationPermissions
}
extension CKApplicationPermissions {
    func contains(_ member: CKApplicationPermissions) -> Bool
    mutating func insert(_ newMember: CKApplicationPermissions) -> (inserted: Bool, memberAfterInsert: CKApplicationPermissions)
    mutating func remove(_ member: CKApplicationPermissions) -> CKApplicationPermissions?
    mutating func update(with newMember: CKApplicationPermissions) -> CKApplicationPermissions?
}
extension CKApplicationPermissions {
    convenience init()
    mutating func formUnion(_ other: CKApplicationPermissions)
    mutating func formIntersection(_ other: CKApplicationPermissions)
    mutating func formSymmetricDifference(_ other: CKApplicationPermissions)
}
extension CKApplicationPermissions {
    convenience init<S : Sequence where S.Iterator.Element == CKApplicationPermissions>(_ sequence: S)
    convenience init(arrayLiteral arrayLiteral: CKApplicationPermissions...)
    mutating func subtract(_ other: CKApplicationPermissions)
    func isSubset(of other: CKApplicationPermissions) -> Bool
    func isSuperset(of other: CKApplicationPermissions) -> Bool
    func isDisjoint(with other: CKApplicationPermissions) -> Bool
    func subtracting(_ other: CKApplicationPermissions) -> CKApplicationPermissions
    var isEmpty: Bool { get }
    func isStrictSuperset(of other: CKApplicationPermissions) -> Bool
    func isStrictSubset(of other: CKApplicationPermissions) -> Bool
}
OptionSet

Declaration
From
static var UserDiscoverability: CKApplicationPermissions { get }
To
static var userDiscoverability: CKApplicationPermissions { get }

Declaration
From
enum CKApplicationPermissionStatus : Int {
    case InitialState
    case CouldNotComplete
    case Denied
    case Granted
}
To
enum CKApplicationPermissionStatus : Int {
    case initialState
    case couldNotComplete
    case denied
    case granted
}

Declaration
From
case CouldNotComplete
To
case couldNotComplete

Declaration
From
case Denied
To
case denied

Declaration
From
case Granted
To
case granted

Declaration
From
case InitialState
To
case initialState

Modified CKAsset
DeclarationProtocols
From
class CKAsset : NSObject {
    init()
    init(fileURL fileURL: NSURL)
    @NSCopying var fileURL: NSURL { get }
}
extension CKAsset : CKRecordValue {
}
CKRecordValue
To
class CKAsset : NSObject {
    init()
    init(fileURL fileURL: URL)
    var fileURL: URL { get }
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
    func performSelector(inBackground aSelector: Selector, with arg: Any?)
    class func classForKeyedUnarchiver() -> AnyClass
    var classForKeyedArchiver: AnyClass? { get }
    func replacementObject(for archiver: NSKeyedArchiver) -> Any?
    class func classFallbacksForKeyedArchiver() -> [String]
    class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
    class func automaticallyNotifiesObservers(forKey key: String) -> Bool
    var observationInfo: UnsafeMutableRawPointer?
    func willChangeValue(forKey key: String)
    func didChangeValue(forKey key: String)
    func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
    func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
    class var accessInstanceVariablesDirectly: Bool { get }
    func value(forKey key: String) -> Any?
    func setValue(_ value: Any?, forKey key: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
    func mutableArrayValue(forKey key: String) -> NSMutableArray
    func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
    func mutableSetValue(forKey key: String) -> NSMutableSet
    func value(forKeyPath keyPath: String) -> Any?
    func setValue(_ value: Any?, forKeyPath keyPath: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
    func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
    func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
    func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
    func value(forUndefinedKey key: String) -> Any?
    func setValue(_ value: Any?, forUndefinedKey key: String)
    func setNilValueForKey(_ key: String)
    func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
    func setValuesForKeys(_ keyedValues: [String : Any])
    func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
    func fileManager(_ fm: FileManager, willProcessPath path: String)
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
    var autoContentAccessingProxy: Any { get }
    class func version() -> Int
    class func setVersion(_ aVersion: Int)
    var classForCoder: AnyClass { get }
    func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension CKAsset : CVarArg {
}
extension CKAsset : Equatable, Hashable {
    var hashValue: Int { get }
}
extension CKAsset : CKRecordValue {
}
CKRecordValue, CVarArg, Equatable, Hashable

Declaration
From
@NSCopying var fileURL: NSURL { get }
To
var fileURL: URL { get }

Declaration
From
init(fileURL fileURL: NSURL)
To
init(fileURL fileURL: URL)

Modified CKContainer
DeclarationProtocols
From
class CKContainer : NSObject {
    init()
    class func defaultContainer() -> CKContainer
     init(identifier containerIdentifier: String)
    class func containerWithIdentifier(_ containerIdentifier: String) -> CKContainer
    var containerIdentifier: String? { get }
    func addOperation(_ operation: CKOperation)
}
extension CKContainer {
    var privateCloudDatabase: CKDatabase { get }
    var publicCloudDatabase: CKDatabase { get }
}
extension CKContainer {
    func accountStatusWithCompletionHandler(_ completionHandler: (CKAccountStatus, NSError?) -> Void)
}
extension CKContainer {
    func statusForApplicationPermission(_ applicationPermission: CKApplicationPermissions, completionHandler completionHandler: CKApplicationPermissionBlock)
    func requestApplicationPermission(_ applicationPermission: CKApplicationPermissions, completionHandler completionHandler: CKApplicationPermissionBlock)
}
extension CKContainer {
    func fetchUserRecordIDWithCompletionHandler(_ completionHandler: (CKRecordID?, NSError?) -> Void)
    func discoverAllContactUserInfosWithCompletionHandler(_ completionHandler: ([CKDiscoveredUserInfo]?, NSError?) -> Void)
    func discoverUserInfoWithEmailAddress(_ email: String, completionHandler completionHandler: (CKDiscoveredUserInfo?, NSError?) -> Void)
    func discoverUserInfoWithUserRecordID(_ userRecordID: CKRecordID, completionHandler completionHandler: (CKDiscoveredUserInfo?, NSError?) -> Void)
}
extension CKContainer {
    func fetchAllLongLivedOperationIDsWithCompletionHandler(_ completionHandler: ([String]?, NSError?) -> Void)
    func fetchLongLivedOperationWithID(_ operationID: String, completionHandler completionHandler: (CKOperation?, NSError?) -> Void)
}
--
To
class CKContainer : NSObject {
    init()
    class func `default`() -> CKContainer
     init(identifier containerIdentifier: String)
    class func withIdentifier(_ containerIdentifier: String) -> CKContainer
    var containerIdentifier: String? { get }
    func add(_ operation: CKOperation)
    func fetchAllLongLivedOperationIDs(completionHandler completionHandler: @escaping ([String]?, Error?) -> Swift.Void)
    func fetchLongLivedOperation(withID operationID: String, completionHandler completionHandler: @escaping (CKOperation?, Error?) -> Swift.Void)
    func fetchShareParticipant(withEmailAddress emailAddress: String, completionHandler completionHandler: @escaping (CKShareParticipant, Error) -> Swift.Void)
    func fetchShareParticipant(withPhoneNumber phoneNumber: String, completionHandler completionHandler: @escaping (CKShareParticipant, Error) -> Swift.Void)
    func fetchShareParticipant(withUserRecordID userRecordID: CKRecordID, completionHandler completionHandler: @escaping (CKShareParticipant, Error) -> Swift.Void)
    func fetchShareMetadata(with url: URL, completionHandler completionHandler: @escaping (CKShareMetadata, Error) -> Swift.Void)
    func accept(_ metadata: CKShareMetadata, completionHandler completionHandler: @escaping (CKShare, Error) -> Swift.Void)
    func fetchUserRecordID(completionHandler completionHandler: @escaping (CKRecordID?, Error?) -> Swift.Void)
    func discoverAllIdentities(completionHandler completionHandler: @escaping ([CKUserIdentity]?, Error?) -> Swift.Void)
    func discoverUserIdentity(withEmailAddress email: String, completionHandler completionHandler: @escaping (CKUserIdentity?, Error?) -> Swift.Void)
    func discoverUserIdentity(withPhoneNumber phoneNumber: String, completionHandler completionHandler: @escaping (CKUserIdentity?, Error?) -> Swift.Void)
    func discoverUserIdentity(withUserRecordID userRecordID: CKRecordID, completionHandler completionHandler: @escaping (CKUserIdentity?, Error?) -> Swift.Void)
    func discoverAllContactUserInfos(completionHandler completionHandler: @escaping ([CKDiscoveredUserInfo]?, Error?) -> Swift.Void)
    func discoverUserInfo(withEmailAddress email: String, completionHandler completionHandler: @escaping (CKDiscoveredUserInfo?, Error?) -> Swift.Void)
    func discoverUserInfo(withUserRecordID userRecordID: CKRecordID, completionHandler completionHandler: @escaping (CKDiscoveredUserInfo?, Error?) -> Swift.Void)
    func status(forApplicationPermission applicationPermission: CKApplicationPermissions, completionHandler completionHandler: CloudKit.CKApplicationPermissionBlock)
    func requestApplicationPermission(_ applicationPermission: CKApplicationPermissions, completionHandler completionHandler: CloudKit.CKApplicationPermissionBlock)
    func accountStatus(completionHandler completionHandler: @escaping (CKAccountStatus, Error?) -> Swift.Void)
    var privateCloudDatabase: CKDatabase { get }
    var publicCloudDatabase: CKDatabase { get }
    var sharedCloudDatabase: CKDatabase { get }
    func database(with databaseScope: CKDatabaseScope) -> CKDatabase
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
    func performSelector(inBackground aSelector: Selector, with arg: Any?)
    class func classForKeyedUnarchiver() -> AnyClass
    var classForKeyedArchiver: AnyClass? { get }
    func replacementObject(for archiver: NSKeyedArchiver) -> Any?
    class func classFallbacksForKeyedArchiver() -> [String]
    class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
    class func automaticallyNotifiesObservers(forKey key: String) -> Bool
    var observationInfo: UnsafeMutableRawPointer?
    func willChangeValue(forKey key: String)
    func didChangeValue(forKey key: String)
    func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
    func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
    class var accessInstanceVariablesDirectly: Bool { get }
    func value(forKey key: String) -> Any?
    func setValue(_ value: Any?, forKey key: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
    func mutableArrayValue(forKey key: String) -> NSMutableArray
    func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
    func mutableSetValue(forKey key: String) -> NSMutableSet
    func value(forKeyPath keyPath: String) -> Any?
    func setValue(_ value: Any?, forKeyPath keyPath: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
    func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
    func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
    func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
    func value(forUndefinedKey key: String) -> Any?
    func setValue(_ value: Any?, forUndefinedKey key: String)
    func setNilValueForKey(_ key: String)
    func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
    func setValuesForKeys(_ keyedValues: [String : Any])
    func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
    func fileManager(_ fm: FileManager, willProcessPath path: String)
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
    var autoContentAccessingProxy: Any { get }
    class func version() -> Int
    class func setVersion(_ aVersion: Int)
    var classForCoder: AnyClass { get }
    func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension CKContainer : CVarArg {
}
extension CKContainer : Equatable, Hashable {
    var hashValue: Int { get }
}
extension CKContainer {
    var privateCloudDatabase: CKDatabase { get }
    var publicCloudDatabase: CKDatabase { get }
    var sharedCloudDatabase: CKDatabase { get }
    func database(with databaseScope: CKDatabaseScope) -> CKDatabase
}
extension CKContainer {
    func accountStatus(completionHandler completionHandler: @escaping (CKAccountStatus, Error?) -> Swift.Void)
}
extension CKContainer {
    func status(forApplicationPermission applicationPermission: CKApplicationPermissions, completionHandler completionHandler: CloudKit.CKApplicationPermissionBlock)
    func requestApplicationPermission(_ applicationPermission: CKApplicationPermissions, completionHandler completionHandler: CloudKit.CKApplicationPermissionBlock)
}
extension CKContainer {
    func fetchUserRecordID(completionHandler completionHandler: @escaping (CKRecordID?, Error?) -> Swift.Void)
    func discoverAllIdentities(completionHandler completionHandler: @escaping ([CKUserIdentity]?, Error?) -> Swift.Void)
    func discoverUserIdentity(withEmailAddress email: String, completionHandler completionHandler: @escaping (CKUserIdentity?, Error?) -> Swift.Void)
    func discoverUserIdentity(withPhoneNumber phoneNumber: String, completionHandler completionHandler: @escaping (CKUserIdentity?, Error?) -> Swift.Void)
    func discoverUserIdentity(withUserRecordID userRecordID: CKRecordID, completionHandler completionHandler: @escaping (CKUserIdentity?, Error?) -> Swift.Void)
    func discoverAllContactUserInfos(completionHandler completionHandler: @escaping ([CKDiscoveredUserInfo]?, Error?) -> Swift.Void)
    func discoverUserInfo(withEmailAddress email: String, completionHandler completionHandler: @escaping (CKDiscoveredUserInfo?, Error?) -> Swift.Void)
    func discoverUserInfo(withUserRecordID userRecordID: CKRecordID, completionHandler completionHandler: @escaping (CKDiscoveredUserInfo?, Error?) -> Swift.Void)
}
extension CKContainer {
    func fetchShareParticipant(withEmailAddress emailAddress: String, completionHandler completionHandler: @escaping (CKShareParticipant, Error) -> Swift.Void)
    func fetchShareParticipant(withPhoneNumber phoneNumber: String, completionHandler completionHandler: @escaping (CKShareParticipant, Error) -> Swift.Void)
    func fetchShareParticipant(withUserRecordID userRecordID: CKRecordID, completionHandler completionHandler: @escaping (CKShareParticipant, Error) -> Swift.Void)
    func fetchShareMetadata(with url: URL, completionHandler completionHandler: @escaping (CKShareMetadata, Error) -> Swift.Void)
    func accept(_ metadata: CKShareMetadata, completionHandler completionHandler: @escaping (CKShare, Error) -> Swift.Void)
}
extension CKContainer {
    func fetchAllLongLivedOperationIDs(completionHandler completionHandler: @escaping ([String]?, Error?) -> Swift.Void)
    func fetchLongLivedOperation(withID operationID: String, completionHandler completionHandler: @escaping (CKOperation?, Error?) -> Swift.Void)
}
CVarArg, Equatable, Hashable

Declaration
From
func accountStatusWithCompletionHandler(_ completionHandler: (CKAccountStatus, NSError?) -> Void)
To
func accountStatus(completionHandler completionHandler: @escaping (CKAccountStatus, Error?) -> Swift.Void)

Declaration
From
func addOperation(_ operation: CKOperation)
To
func add(_ operation: CKOperation)

Declaration
From
class func defaultContainer() -> CKContainer
To
class func `default`() -> CKContainer

DeclarationDeprecation
From
func discoverAllContactUserInfosWithCompletionHandler(_ completionHandler: ([CKDiscoveredUserInfo]?, NSError?) -> Void)
--
To
func discoverAllContactUserInfos(completionHandler completionHandler: @escaping ([CKDiscoveredUserInfo]?, Error?) -> Swift.Void)
iOS 10.0

DeclarationDeprecation
From
func discoverUserInfoWithEmailAddress(_ email: String, completionHandler completionHandler: (CKDiscoveredUserInfo?, NSError?) -> Void)
--
To
func discoverUserInfo(withEmailAddress email: String, completionHandler completionHandler: @escaping (CKDiscoveredUserInfo?, Error?) -> Swift.Void)
iOS 10.0

DeclarationDeprecation
From
func discoverUserInfoWithUserRecordID(_ userRecordID: CKRecordID, completionHandler completionHandler: (CKDiscoveredUserInfo?, NSError?) -> Void)
--
To
func discoverUserInfo(withUserRecordID userRecordID: CKRecordID, completionHandler completionHandler: @escaping (CKDiscoveredUserInfo?, Error?) -> Swift.Void)
iOS 10.0

Declaration
From
func fetchAllLongLivedOperationIDsWithCompletionHandler(_ completionHandler: ([String]?, NSError?) -> Void)
To
func fetchAllLongLivedOperationIDs(completionHandler completionHandler: @escaping ([String]?, Error?) -> Swift.Void)

Declaration
From
func fetchLongLivedOperationWithID(_ operationID: String, completionHandler completionHandler: (CKOperation?, NSError?) -> Void)
To
func fetchLongLivedOperation(withID operationID: String, completionHandler completionHandler: @escaping (CKOperation?, Error?) -> Swift.Void)

Declaration
From
func fetchUserRecordIDWithCompletionHandler(_ completionHandler: (CKRecordID?, NSError?) -> Void)
To
func fetchUserRecordID(completionHandler completionHandler: @escaping (CKRecordID?, Error?) -> Swift.Void)

Declaration
From
func requestApplicationPermission(_ applicationPermission: CKApplicationPermissions, completionHandler completionHandler: CKApplicationPermissionBlock)
To
func requestApplicationPermission(_ applicationPermission: CKApplicationPermissions, completionHandler completionHandler: CloudKit.CKApplicationPermissionBlock)

Declaration
From
func statusForApplicationPermission(_ applicationPermission: CKApplicationPermissions, completionHandler completionHandler: CKApplicationPermissionBlock)
To
func status(forApplicationPermission applicationPermission: CKApplicationPermissions, completionHandler completionHandler: CloudKit.CKApplicationPermissionBlock)

Modified CKDatabase
DeclarationProtocols
From
class CKDatabase : NSObject {
    init()
    func addOperation(_ operation: CKDatabaseOperation)
}
extension CKDatabase {
    func fetchRecordWithID(_ recordID: CKRecordID, completionHandler completionHandler: (CKRecord?, NSError?) -> Void)
    func saveRecord(_ record: CKRecord, completionHandler completionHandler: (CKRecord?, NSError?) -> Void)
    func deleteRecordWithID(_ recordID: CKRecordID, completionHandler completionHandler: (CKRecordID?, NSError?) -> Void)
    func performQuery(_ query: CKQuery, inZoneWithID zoneID: CKRecordZoneID?, completionHandler completionHandler: ([CKRecord]?, NSError?) -> Void)
    func fetchAllRecordZonesWithCompletionHandler(_ completionHandler: ([CKRecordZone]?, NSError?) -> Void)
    func fetchRecordZoneWithID(_ zoneID: CKRecordZoneID, completionHandler completionHandler: (CKRecordZone?, NSError?) -> Void)
    func saveRecordZone(_ zone: CKRecordZone, completionHandler completionHandler: (CKRecordZone?, NSError?) -> Void)
    func deleteRecordZoneWithID(_ zoneID: CKRecordZoneID, completionHandler completionHandler: (CKRecordZoneID?, NSError?) -> Void)
    func fetchSubscriptionWithID(_ subscriptionID: String, completionHandler completionHandler: (CKSubscription?, NSError?) -> Void)
    func fetchAllSubscriptionsWithCompletionHandler(_ completionHandler: ([CKSubscription]?, NSError?) -> Void)
    func saveSubscription(_ subscription: CKSubscription, completionHandler completionHandler: (CKSubscription?, NSError?) -> Void)
    func deleteSubscriptionWithID(_ subscriptionID: String, completionHandler completionHandler: (String?, NSError?) -> Void)
}
--
To
class CKDatabase : NSObject {
    init()
    func add(_ operation: CKDatabaseOperation)
    var databaseScope: CKDatabaseScope { get }
    func fetch(withRecordID recordID: CKRecordID, completionHandler completionHandler: @escaping (CKRecord?, Error?) -> Swift.Void)
    func save(_ record: CKRecord, completionHandler completionHandler: @escaping (CKRecord?, Error?) -> Swift.Void)
    func delete(withRecordID recordID: CKRecordID, completionHandler completionHandler: @escaping (CKRecordID?, Error?) -> Swift.Void)
    func perform(_ query: CKQuery, inZoneWith zoneID: CKRecordZoneID?, completionHandler completionHandler: @escaping ([CKRecord]?, Error?) -> Swift.Void)
    func fetchAllRecordZones(completionHandler completionHandler: @escaping ([CKRecordZone]?, Error?) -> Swift.Void)
    func fetch(withRecordZoneID zoneID: CKRecordZoneID, completionHandler completionHandler: @escaping (CKRecordZone?, Error?) -> Swift.Void)
    func save(_ zone: CKRecordZone, completionHandler completionHandler: @escaping (CKRecordZone?, Error?) -> Swift.Void)
    func delete(withRecordZoneID zoneID: CKRecordZoneID, completionHandler completionHandler: @escaping (CKRecordZoneID?, Error?) -> Swift.Void)
    func fetch(withSubscriptionID subscriptionID: String, completionHandler completionHandler: @escaping (CKSubscription?, Error?) -> Swift.Void)
    func fetchAllSubscriptions(completionHandler completionHandler: @escaping ([CKSubscription]?, Error?) -> Swift.Void)
    func save(_ subscription: CKSubscription, completionHandler completionHandler: @escaping (CKSubscription?, Error?) -> Swift.Void)
    func delete(withSubscriptionID subscriptionID: String, completionHandler completionHandler: @escaping (String?, Error?) -> Swift.Void)
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
    func performSelector(inBackground aSelector: Selector, with arg: Any?)
    class func classForKeyedUnarchiver() -> AnyClass
    var classForKeyedArchiver: AnyClass? { get }
    func replacementObject(for archiver: NSKeyedArchiver) -> Any?
    class func classFallbacksForKeyedArchiver() -> [String]
    class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
    class func automaticallyNotifiesObservers(forKey key: String) -> Bool
    var observationInfo: UnsafeMutableRawPointer?
    func willChangeValue(forKey key: String)
    func didChangeValue(forKey key: String)
    func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
    func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
    class var accessInstanceVariablesDirectly: Bool { get }
    func value(forKey key: String) -> Any?
    func setValue(_ value: Any?, forKey key: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
    func mutableArrayValue(forKey key: String) -> NSMutableArray
    func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
    func mutableSetValue(forKey key: String) -> NSMutableSet
    func value(forKeyPath keyPath: String) -> Any?
    func setValue(_ value: Any?, forKeyPath keyPath: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
    func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
    func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
    func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
    func value(forUndefinedKey key: String) -> Any?
    func setValue(_ value: Any?, forUndefinedKey key: String)
    func setNilValueForKey(_ key: String)
    func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
    func setValuesForKeys(_ keyedValues: [String : Any])
    func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
    func fileManager(_ fm: FileManager, willProcessPath path: String)
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
    var autoContentAccessingProxy: Any { get }
    class func version() -> Int
    class func setVersion(_ aVersion: Int)
    var classForCoder: AnyClass { get }
    func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension CKDatabase : CVarArg {
}
extension CKDatabase : Equatable, Hashable {
    var hashValue: Int { get }
}
extension CKDatabase {
    func fetch(withRecordID recordID: CKRecordID, completionHandler completionHandler: @escaping (CKRecord?, Error?) -> Swift.Void)
    func save(_ record: CKRecord, completionHandler completionHandler: @escaping (CKRecord?, Error?) -> Swift.Void)
    func delete(withRecordID recordID: CKRecordID, completionHandler completionHandler: @escaping (CKRecordID?, Error?) -> Swift.Void)
    func perform(_ query: CKQuery, inZoneWith zoneID: CKRecordZoneID?, completionHandler completionHandler: @escaping ([CKRecord]?, Error?) -> Swift.Void)
    func fetchAllRecordZones(completionHandler completionHandler: @escaping ([CKRecordZone]?, Error?) -> Swift.Void)
    func fetch(withRecordZoneID zoneID: CKRecordZoneID, completionHandler completionHandler: @escaping (CKRecordZone?, Error?) -> Swift.Void)
    func save(_ zone: CKRecordZone, completionHandler completionHandler: @escaping (CKRecordZone?, Error?) -> Swift.Void)
    func delete(withRecordZoneID zoneID: CKRecordZoneID, completionHandler completionHandler: @escaping (CKRecordZoneID?, Error?) -> Swift.Void)
    func fetch(withSubscriptionID subscriptionID: String, completionHandler completionHandler: @escaping (CKSubscription?, Error?) -> Swift.Void)
    func fetchAllSubscriptions(completionHandler completionHandler: @escaping ([CKSubscription]?, Error?) -> Swift.Void)
    func save(_ subscription: CKSubscription, completionHandler completionHandler: @escaping (CKSubscription?, Error?) -> Swift.Void)
    func delete(withSubscriptionID subscriptionID: String, completionHandler completionHandler: @escaping (String?, Error?) -> Swift.Void)
}
CVarArg, Equatable, Hashable

Declaration
From
func addOperation(_ operation: CKDatabaseOperation)
To
func add(_ operation: CKDatabaseOperation)

Declaration
From
func deleteRecordWithID(_ recordID: CKRecordID, completionHandler completionHandler: (CKRecordID?, NSError?) -> Void)
To
func delete(withRecordID recordID: CKRecordID, completionHandler completionHandler: @escaping (CKRecordID?, Error?) -> Swift.Void)

Declaration
From
func deleteRecordZoneWithID(_ zoneID: CKRecordZoneID, completionHandler completionHandler: (CKRecordZoneID?, NSError?) -> Void)
To
func delete(withRecordZoneID zoneID: CKRecordZoneID, completionHandler completionHandler: @escaping (CKRecordZoneID?, Error?) -> Swift.Void)

Declaration
From
func deleteSubscriptionWithID(_ subscriptionID: String, completionHandler completionHandler: (String?, NSError?) -> Void)
To
func delete(withSubscriptionID subscriptionID: String, completionHandler completionHandler: @escaping (String?, Error?) -> Swift.Void)

Declaration
From
func fetchRecordWithID(_ recordID: CKRecordID, completionHandler completionHandler: (CKRecord?, NSError?) -> Void)
To
func fetch(withRecordID recordID: CKRecordID, completionHandler completionHandler: @escaping (CKRecord?, Error?) -> Swift.Void)

Declaration
From
func fetchRecordZoneWithID(_ zoneID: CKRecordZoneID, completionHandler completionHandler: (CKRecordZone?, NSError?) -> Void)
To
func fetch(withRecordZoneID zoneID: CKRecordZoneID, completionHandler completionHandler: @escaping (CKRecordZone?, Error?) -> Swift.Void)

Declaration
From
func fetchSubscriptionWithID(_ subscriptionID: String, completionHandler completionHandler: (CKSubscription?, NSError?) -> Void)
To
func fetch(withSubscriptionID subscriptionID: String, completionHandler completionHandler: @escaping (CKSubscription?, Error?) -> Swift.Void)

Declaration
From
func fetchAllRecordZonesWithCompletionHandler(_ completionHandler: ([CKRecordZone]?, NSError?) -> Void)
To
func fetchAllRecordZones(completionHandler completionHandler: @escaping ([CKRecordZone]?, Error?) -> Swift.Void)

Declaration
From
func fetchAllSubscriptionsWithCompletionHandler(_ completionHandler: ([CKSubscription]?, NSError?) -> Void)
To
func fetchAllSubscriptions(completionHandler completionHandler: @escaping ([CKSubscription]?, Error?) -> Swift.Void)

Declaration
From
func performQuery(_ query: CKQuery, inZoneWithID zoneID: CKRecordZoneID?, completionHandler completionHandler: ([CKRecord]?, NSError?) -> Void)
To
func perform(_ query: CKQuery, inZoneWith zoneID: CKRecordZoneID?, completionHandler completionHandler: @escaping ([CKRecord]?, Error?) -> Swift.Void)

Declaration
From
func saveRecord(_ record: CKRecord, completionHandler completionHandler: (CKRecord?, NSError?) -> Void)
To
func save(_ record: CKRecord, completionHandler completionHandler: @escaping (CKRecord?, Error?) -> Swift.Void)

Declaration
From
func saveRecordZone(_ zone: CKRecordZone, completionHandler completionHandler: (CKRecordZone?, NSError?) -> Void)
To
func save(_ zone: CKRecordZone, completionHandler completionHandler: @escaping (CKRecordZone?, Error?) -> Swift.Void)

Declaration
From
func saveSubscription(_ subscription: CKSubscription, completionHandler completionHandler: (CKSubscription?, NSError?) -> Void)
To
func save(_ subscription: CKSubscription, completionHandler completionHandler: @escaping (CKSubscription?, Error?) -> Swift.Void)

DeclarationDeprecation
From
class CKDiscoverAllContactsOperation : CKOperation {
    init()
    var discoverAllContactsCompletionBlock: (([CKDiscoveredUserInfo]?, NSError?) -> Void)?
}
--
To
class CKDiscoverAllContactsOperation : CKOperation {
    init()
    var discoverAllContactsCompletionBlock: (([CKDiscoveredUserInfo]?, Error?) -> Swift.Void)?
}
iOS 10.0

DeclarationDeprecation
From
var discoverAllContactsCompletionBlock: (([CKDiscoveredUserInfo]?, NSError?) -> Void)?
--
To
var discoverAllContactsCompletionBlock: (([CKDiscoveredUserInfo]?, Error?) -> Swift.Void)?
iOS 10.0

Deprecation
From--
ToiOS 10.0

DeclarationProtocolsDeprecation
From
class CKDiscoveredUserInfo : NSObject {
    init()
    @NSCopying var userRecordID: CKRecordID? { get }
    var firstName: String? { get }
    var lastName: String? { get }
    @NSCopying var displayContact: CNContact? { get }
}
----
To
class CKDiscoveredUserInfo : NSObject {
    init()
    @NSCopying var userRecordID: CKRecordID? { get }
    var firstName: String? { get }
    var lastName: String? { get }
    @NSCopying var displayContact: CNContact? { get }
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
    func performSelector(inBackground aSelector: Selector, with arg: Any?)
    class func classForKeyedUnarchiver() -> AnyClass
    var classForKeyedArchiver: AnyClass? { get }
    func replacementObject(for archiver: NSKeyedArchiver) -> Any?
    class func classFallbacksForKeyedArchiver() -> [String]
    class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
    class func automaticallyNotifiesObservers(forKey key: String) -> Bool
    var observationInfo: UnsafeMutableRawPointer?
    func willChangeValue(forKey key: String)
    func didChangeValue(forKey key: String)
    func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
    func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
    class var accessInstanceVariablesDirectly: Bool { get }
    func value(forKey key: String) -> Any?
    func setValue(_ value: Any?, forKey key: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
    func mutableArrayValue(forKey key: String) -> NSMutableArray
    func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
    func mutableSetValue(forKey key: String) -> NSMutableSet
    func value(forKeyPath keyPath: String) -> Any?
    func setValue(_ value: Any?, forKeyPath keyPath: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
    func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
    func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
    func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
    func value(forUndefinedKey key: String) -> Any?
    func setValue(_ value: Any?, forUndefinedKey key: String)
    func setNilValueForKey(_ key: String)
    func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
    func setValuesForKeys(_ keyedValues: [String : Any])
    func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
    func fileManager(_ fm: FileManager, willProcessPath path: String)
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
    var autoContentAccessingProxy: Any { get }
    class func version() -> Int
    class func setVersion(_ aVersion: Int)
    var classForCoder: AnyClass { get }
    func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension CKDiscoveredUserInfo : CVarArg {
}
extension CKDiscoveredUserInfo : Equatable, Hashable {
    var hashValue: Int { get }
}
CVarArg, Equatable, HashableiOS 10.0

Deprecation
From--
ToiOS 10.0

Deprecation
From--
ToiOS 10.0

DeclarationDeprecation
From
class CKDiscoverUserInfosOperation : CKOperation {
    init()
    convenience init(emailAddresses emailAddresses: [String]?, userRecordIDs userRecordIDs: [CKRecordID]?)
    var emailAddresses: [String]?
    var userRecordIDs: [CKRecordID]?
    var discoverUserInfosCompletionBlock: (([String : CKDiscoveredUserInfo]?, [CKRecordID : CKDiscoveredUserInfo]?, NSError?) -> Void)?
}
--
To
class CKDiscoverUserInfosOperation : CKOperation {
    init()
    convenience init(emailAddresses emailAddresses: [String]?, userRecordIDs userRecordIDs: [CKRecordID]?)
    var emailAddresses: [String]?
    var userRecordIDs: [CKRecordID]?
    var discoverUserInfosCompletionBlock: (([String : CKDiscoveredUserInfo]?, [CKRecordID : CKDiscoveredUserInfo]?, Error?) -> Swift.Void)?
}
iOS 10.0

DeclarationDeprecation
From
var discoverUserInfosCompletionBlock: (([String : CKDiscoveredUserInfo]?, [CKRecordID : CKDiscoveredUserInfo]?, NSError?) -> Void)?
--
To
var discoverUserInfosCompletionBlock: (([String : CKDiscoveredUserInfo]?, [CKRecordID : CKDiscoveredUserInfo]?, Error?) -> Swift.Void)?
iOS 10.0

Deprecation
From--
ToiOS 10.0

Deprecation
From--
ToiOS 10.0

Deprecation
From--
ToiOS 10.0

Deprecation
From--
ToiOS 10.0

Declaration
From
enum CKErrorCode : Int {
    case InternalError
    case PartialFailure
    case NetworkUnavailable
    case NetworkFailure
    case BadContainer
    case ServiceUnavailable
    case RequestRateLimited
    case MissingEntitlement
    case NotAuthenticated
    case PermissionFailure
    case UnknownItem
    case InvalidArguments
    case ResultsTruncated
    case ServerRecordChanged
    case ServerRejectedRequest
    case AssetFileNotFound
    case AssetFileModified
    case IncompatibleVersion
    case ConstraintViolation
    case OperationCancelled
    case ChangeTokenExpired
    case BatchRequestFailed
    case ZoneBusy
    case BadDatabase
    case QuotaExceeded
    case ZoneNotFound
    case LimitExceeded
    case UserDeletedZone
}
extension CKErrorCode : _BridgedNSError {
}
extension CKErrorCode : _BridgedNSError {
}
To
enum Code : Int {
        typealias _ErrorType = CKError
        case internalError
        case partialFailure
        case networkUnavailable
        case networkFailure
        case badContainer
        case serviceUnavailable
        case requestRateLimited
        case missingEntitlement
        case notAuthenticated
        case permissionFailure
        case unknownItem
        case invalidArguments
        case resultsTruncated
        case serverRecordChanged
        case serverRejectedRequest
        case assetFileNotFound
        case assetFileModified
        case incompatibleVersion
        case constraintViolation
        case operationCancelled
        case changeTokenExpired
        case batchRequestFailed
        case zoneBusy
        case badDatabase
        case quotaExceeded
        case zoneNotFound
        case limitExceeded
        case userDeletedZone
        case tooManyParticipants
        case alreadyShared
        case referenceViolation
        case managedAccountRestricted
        case participantMayNeedVerification
    }

Declaration
From
case AssetFileModified
To
case assetFileModified

Declaration
From
case AssetFileNotFound
To
case assetFileNotFound

Declaration
From
case BadContainer
To
case badContainer

Declaration
From
case BadDatabase
To
case badDatabase

Declaration
From
case BatchRequestFailed
To
case batchRequestFailed

Declaration
From
case ChangeTokenExpired
To
case changeTokenExpired

Declaration
From
case ConstraintViolation
To
case constraintViolation

Declaration
From
case IncompatibleVersion
To
case incompatibleVersion

Declaration
From
case InternalError
To
case internalError

Declaration
From
case InvalidArguments
To
case invalidArguments

Declaration
From
case LimitExceeded
To
case limitExceeded

Declaration
From
case MissingEntitlement
To
case missingEntitlement

Declaration
From
case NetworkFailure
To
case networkFailure

Declaration
From
case NetworkUnavailable
To
case networkUnavailable

Declaration
From
case NotAuthenticated
To
case notAuthenticated

Declaration
From
case OperationCancelled
To
case operationCancelled

Declaration
From
case PartialFailure
To
case partialFailure

Declaration
From
case PermissionFailure
To
case permissionFailure

Declaration
From
case QuotaExceeded
To
case quotaExceeded

Declaration
From
case RequestRateLimited
To
case requestRateLimited

DeclarationDeprecation
From
case ResultsTruncated
--
To
case resultsTruncated
iOS 10.0

Declaration
From
case ServerRecordChanged
To
case serverRecordChanged

Declaration
From
case ServerRejectedRequest
To
case serverRejectedRequest

Declaration
From
case ServiceUnavailable
To
case serviceUnavailable

Declaration
From
case UnknownItem
To
case unknownItem

Declaration
From
case UserDeletedZone
To
case userDeletedZone

Declaration
From
case ZoneBusy
To
case zoneBusy

Declaration
From
case ZoneNotFound
To
case zoneNotFound

Declaration
From
class CKFetchNotificationChangesOperation : CKOperation {
    init(previousServerChangeToken previousServerChangeToken: CKServerChangeToken?)
    @NSCopying var previousServerChangeToken: CKServerChangeToken?
    var resultsLimit: Int
    var moreComing: Bool { get }
    var notificationChangedBlock: ((CKNotification) -> Void)?
    var fetchNotificationChangesCompletionBlock: ((CKServerChangeToken?, NSError?) -> Void)?
}
To
class CKFetchNotificationChangesOperation : CKOperation {
    init(previousServerChangeToken previousServerChangeToken: CKServerChangeToken?)
    @NSCopying var previousServerChangeToken: CKServerChangeToken?
    var resultsLimit: Int
    var moreComing: Bool { get }
    var notificationChangedBlock: ((CKNotification) -> Swift.Void)?
    var fetchNotificationChangesCompletionBlock: ((CKServerChangeToken?, Error?) -> Swift.Void)?
}

Declaration
From
var fetchNotificationChangesCompletionBlock: ((CKServerChangeToken?, NSError?) -> Void)?
To
var fetchNotificationChangesCompletionBlock: ((CKServerChangeToken?, Error?) -> Swift.Void)?

Declaration
From
var notificationChangedBlock: ((CKNotification) -> Void)?
To
var notificationChangedBlock: ((CKNotification) -> Swift.Void)?

DeclarationDeprecation
From
class CKFetchRecordChangesOperation : CKDatabaseOperation {
    init(recordZoneID recordZoneID: CKRecordZoneID, previousServerChangeToken previousServerChangeToken: CKServerChangeToken?)
    @NSCopying var recordZoneID: CKRecordZoneID
    @NSCopying var previousServerChangeToken: CKServerChangeToken?
    var resultsLimit: Int
    var desiredKeys: [String]?
    var recordChangedBlock: ((CKRecord) -> Void)?
    var recordWithIDWasDeletedBlock: ((CKRecordID) -> Void)?
    var moreComing: Bool { get }
    var fetchRecordChangesCompletionBlock: ((CKServerChangeToken?, NSData?, NSError?) -> Void)?
}
--
To
class CKFetchRecordChangesOperation : CKDatabaseOperation {
    init(recordZoneID recordZoneID: CKRecordZoneID, previousServerChangeToken previousServerChangeToken: CKServerChangeToken?)
    @NSCopying var recordZoneID: CKRecordZoneID
    @NSCopying var previousServerChangeToken: CKServerChangeToken?
    var resultsLimit: Int
    var desiredKeys: [String]?
    var recordChangedBlock: ((CKRecord) -> Swift.Void)?
    var recordWithIDWasDeletedBlock: ((CKRecordID) -> Swift.Void)?
    var moreComing: Bool { get }
    var fetchRecordChangesCompletionBlock: ((CKServerChangeToken?, Data?, Error?) -> Swift.Void)?
}
iOS 10.0

Deprecation
From--
ToiOS 10.0

DeclarationDeprecation
From
var fetchRecordChangesCompletionBlock: ((CKServerChangeToken?, NSData?, NSError?) -> Void)?
--
To
var fetchRecordChangesCompletionBlock: ((CKServerChangeToken?, Data?, Error?) -> Swift.Void)?
iOS 10.0

Deprecation
From--
ToiOS 10.0

Deprecation
From--
ToiOS 10.0

Deprecation
From--
ToiOS 10.0

DeclarationDeprecation
From
var recordChangedBlock: ((CKRecord) -> Void)?
--
To
var recordChangedBlock: ((CKRecord) -> Swift.Void)?
iOS 10.0

DeclarationDeprecation
From
var recordWithIDWasDeletedBlock: ((CKRecordID) -> Void)?
--
To
var recordWithIDWasDeletedBlock: ((CKRecordID) -> Swift.Void)?
iOS 10.0

Deprecation
From--
ToiOS 10.0

Deprecation
From--
ToiOS 10.0

Declaration
From
class CKFetchRecordsOperation : CKDatabaseOperation {
    init()
    convenience init(recordIDs recordIDs: [CKRecordID])
    class func fetchCurrentUserRecordOperation() -> Self
    var recordIDs: [CKRecordID]?
    var desiredKeys: [String]?
    var perRecordProgressBlock: ((CKRecordID, Double) -> Void)?
    var perRecordCompletionBlock: ((CKRecord?, CKRecordID?, NSError?) -> Void)?
    var fetchRecordsCompletionBlock: (([CKRecordID : CKRecord]?, NSError?) -> Void)?
}
To
class CKFetchRecordsOperation : CKDatabaseOperation {
    init()
    convenience init(recordIDs recordIDs: [CKRecordID])
    class func fetchCurrentUserRecordOperation() -> Self
    var recordIDs: [CKRecordID]?
    var desiredKeys: [String]?
    var perRecordProgressBlock: ((CKRecordID, Double) -> Swift.Void)?
    var perRecordCompletionBlock: ((CKRecord?, CKRecordID?, Error?) -> Swift.Void)?
    var fetchRecordsCompletionBlock: (([CKRecordID : CKRecord]?, Error?) -> Swift.Void)?
}

Declaration
From
var fetchRecordsCompletionBlock: (([CKRecordID : CKRecord]?, NSError?) -> Void)?
To
var fetchRecordsCompletionBlock: (([CKRecordID : CKRecord]?, Error?) -> Swift.Void)?

Declaration
From
var perRecordCompletionBlock: ((CKRecord?, CKRecordID?, NSError?) -> Void)?
To
var perRecordCompletionBlock: ((CKRecord?, CKRecordID?, Error?) -> Swift.Void)?

Declaration
From
var perRecordProgressBlock: ((CKRecordID, Double) -> Void)?
To
var perRecordProgressBlock: ((CKRecordID, Double) -> Swift.Void)?

Declaration
From
class CKFetchRecordZonesOperation : CKDatabaseOperation {
    class func fetchAllRecordZonesOperation() -> Self
    init()
    convenience init(recordZoneIDs zoneIDs: [CKRecordZoneID])
    var recordZoneIDs: [CKRecordZoneID]?
    var fetchRecordZonesCompletionBlock: (([CKRecordZoneID : CKRecordZone]?, NSError?) -> Void)?
}
To
class CKFetchRecordZonesOperation : CKDatabaseOperation {
    class func fetchAllRecordZonesOperation() -> Self
    init()
    convenience init(recordZoneIDs zoneIDs: [CKRecordZoneID])
    var recordZoneIDs: [CKRecordZoneID]?
    var fetchRecordZonesCompletionBlock: (([CKRecordZoneID : CKRecordZone]?, Error?) -> Swift.Void)?
}

Declaration
From
var fetchRecordZonesCompletionBlock: (([CKRecordZoneID : CKRecordZone]?, NSError?) -> Void)?
To
var fetchRecordZonesCompletionBlock: (([CKRecordZoneID : CKRecordZone]?, Error?) -> Swift.Void)?

Declaration
From
class CKFetchSubscriptionsOperation : CKDatabaseOperation {
    init()
    class func fetchAllSubscriptionsOperation() -> Self
    convenience init(subscriptionIDs subscriptionIDs: [String])
    var subscriptionIDs: [String]?
    var fetchSubscriptionCompletionBlock: (([String : CKSubscription]?, NSError?) -> Void)?
}
To
class CKFetchSubscriptionsOperation : CKDatabaseOperation {
    init()
    class func fetchAllSubscriptionsOperation() -> Self
    convenience init(subscriptionIDs subscriptionIDs: [String])
    var subscriptionIDs: [String]?
    var fetchSubscriptionCompletionBlock: (([String : CKSubscription]?, Error?) -> Swift.Void)?
}

Declaration
From
var fetchSubscriptionCompletionBlock: (([String : CKSubscription]?, NSError?) -> Void)?
To
var fetchSubscriptionCompletionBlock: (([String : CKSubscription]?, Error?) -> Swift.Void)?

Declaration
From
class CKFetchWebAuthTokenOperation : CKDatabaseOperation {
    init(APIToken APIToken: String)
    var APIToken: String
    var fetchWebAuthTokenCompletionBlock: ((String, NSError) -> Void)?
}
To
class CKFetchWebAuthTokenOperation : CKDatabaseOperation {
    init(apiToken APIToken: String)
    var apiToken: String?
    var fetchWebAuthTokenCompletionBlock: ((String, Error) -> Swift.Void)?
}

Declaration
From
var APIToken: String
To
var apiToken: String?

Declaration
From
var fetchWebAuthTokenCompletionBlock: ((String, NSError) -> Void)?
To
var fetchWebAuthTokenCompletionBlock: ((String, Error) -> Swift.Void)?

Declaration
From
init(APIToken APIToken: String)
To
init(apiToken APIToken: String)

Declaration
From
class CKMarkNotificationsReadOperation : CKOperation {
    convenience init()
    init(notificationIDsToMarkRead notificationIDs: [CKNotificationID])
    var notificationIDs: [CKNotificationID]
    var markNotificationsReadCompletionBlock: (([CKNotificationID]?, NSError?) -> Void)?
}
To
class CKMarkNotificationsReadOperation : CKOperation {
    init()
    convenience init(notificationIDsToMarkRead notificationIDs: [CKNotificationID])
    var notificationIDs: [CKNotificationID]
    var markNotificationsReadCompletionBlock: (([CKNotificationID]?, Error?) -> Swift.Void)?
}

Declaration
From
init(notificationIDsToMarkRead notificationIDs: [CKNotificationID])
To
convenience init(notificationIDsToMarkRead notificationIDs: [CKNotificationID])

Declaration
From
var markNotificationsReadCompletionBlock: (([CKNotificationID]?, NSError?) -> Void)?
To
var markNotificationsReadCompletionBlock: (([CKNotificationID]?, Error?) -> Swift.Void)?

Declaration
From
class CKModifyBadgeOperation : CKOperation {
    init()
    convenience init(badgeValue badgeValue: Int)
    var badgeValue: Int
    var modifyBadgeCompletionBlock: ((NSError?) -> Void)?
}
To
class CKModifyBadgeOperation : CKOperation {
    init()
    convenience init(badgeValue badgeValue: Int)
    var badgeValue: Int
    var modifyBadgeCompletionBlock: ((Error?) -> Swift.Void)?
}

Declaration
From
var modifyBadgeCompletionBlock: ((NSError?) -> Void)?
To
var modifyBadgeCompletionBlock: ((Error?) -> Swift.Void)?

Declaration
From
class CKModifyRecordsOperation : CKDatabaseOperation {
    init()
    convenience init(recordsToSave records: [CKRecord]?, recordIDsToDelete recordIDs: [CKRecordID]?)
    var recordsToSave: [CKRecord]?
    var recordIDsToDelete: [CKRecordID]?
    var savePolicy: CKRecordSavePolicy
    @NSCopying var clientChangeTokenData: NSData?
    var atomic: Bool
    var perRecordProgressBlock: ((CKRecord, Double) -> Void)?
    var perRecordCompletionBlock: ((CKRecord?, NSError?) -> Void)?
    var modifyRecordsCompletionBlock: (([CKRecord]?, [CKRecordID]?, NSError?) -> Void)?
}
To
class CKModifyRecordsOperation : CKDatabaseOperation {
    init()
    convenience init(recordsToSave records: [CKRecord]?, recordIDsToDelete recordIDs: [CKRecordID]?)
    var recordsToSave: [CKRecord]?
    var recordIDsToDelete: [CKRecordID]?
    var savePolicy: CKRecordSavePolicy
    var clientChangeTokenData: Data?
    var isAtomic: Bool
    var perRecordProgressBlock: ((CKRecord, Double) -> Swift.Void)?
    var perRecordCompletionBlock: ((CKRecord?, Error?) -> Swift.Void)?
    var modifyRecordsCompletionBlock: (([CKRecord]?, [CKRecordID]?, Error?) -> Swift.Void)?
}

Declaration
From
@NSCopying var clientChangeTokenData: NSData?
To
var clientChangeTokenData: Data?

Declaration
From
var atomic: Bool
To
var isAtomic: Bool

Declaration
From
var modifyRecordsCompletionBlock: (([CKRecord]?, [CKRecordID]?, NSError?) -> Void)?
To
var modifyRecordsCompletionBlock: (([CKRecord]?, [CKRecordID]?, Error?) -> Swift.Void)?

Declaration
From
var perRecordCompletionBlock: ((CKRecord?, NSError?) -> Void)?
To
var perRecordCompletionBlock: ((CKRecord?, Error?) -> Swift.Void)?

Declaration
From
var perRecordProgressBlock: ((CKRecord, Double) -> Void)?
To
var perRecordProgressBlock: ((CKRecord, Double) -> Swift.Void)?

Declaration
From
class CKModifyRecordZonesOperation : CKDatabaseOperation {
    init()
    convenience init(recordZonesToSave recordZonesToSave: [CKRecordZone]?, recordZoneIDsToDelete recordZoneIDsToDelete: [CKRecordZoneID]?)
    var recordZonesToSave: [CKRecordZone]?
    var recordZoneIDsToDelete: [CKRecordZoneID]?
    var modifyRecordZonesCompletionBlock: (([CKRecordZone]?, [CKRecordZoneID]?, NSError?) -> Void)?
}
To
class CKModifyRecordZonesOperation : CKDatabaseOperation {
    init()
    convenience init(recordZonesToSave recordZonesToSave: [CKRecordZone]?, recordZoneIDsToDelete recordZoneIDsToDelete: [CKRecordZoneID]?)
    var recordZonesToSave: [CKRecordZone]?
    var recordZoneIDsToDelete: [CKRecordZoneID]?
    var modifyRecordZonesCompletionBlock: (([CKRecordZone]?, [CKRecordZoneID]?, Error?) -> Swift.Void)?
}

Declaration
From
var modifyRecordZonesCompletionBlock: (([CKRecordZone]?, [CKRecordZoneID]?, NSError?) -> Void)?
To
var modifyRecordZonesCompletionBlock: (([CKRecordZone]?, [CKRecordZoneID]?, Error?) -> Swift.Void)?

Declaration
From
class CKModifySubscriptionsOperation : CKDatabaseOperation {
    init(subscriptionsToSave subscriptionsToSave: [CKSubscription]?, subscriptionIDsToDelete subscriptionIDsToDelete: [String]?)
    var subscriptionsToSave: [CKSubscription]?
    var subscriptionIDsToDelete: [String]?
    var modifySubscriptionsCompletionBlock: (([CKSubscription]?, [String]?, NSError?) -> Void)?
}
To
class CKModifySubscriptionsOperation : CKDatabaseOperation {
    init(subscriptionsToSave subscriptionsToSave: [CKSubscription]?, subscriptionIDsToDelete subscriptionIDsToDelete: [String]?)
    var subscriptionsToSave: [CKSubscription]?
    var subscriptionIDsToDelete: [String]?
    var modifySubscriptionsCompletionBlock: (([CKSubscription]?, [String]?, Error?) -> Swift.Void)?
}

Declaration
From
var modifySubscriptionsCompletionBlock: (([CKSubscription]?, [String]?, NSError?) -> Void)?
To
var modifySubscriptionsCompletionBlock: (([CKSubscription]?, [String]?, Error?) -> Swift.Void)?

DeclarationProtocols
From
class CKNotification : NSObject {
    init()
    convenience init(fromRemoteNotificationDictionary notificationDictionary: [String : NSObject])
    class func notificationFromRemoteNotificationDictionary(_ notificationDictionary: [String : NSObject]) -> Self
    var notificationType: CKNotificationType { get }
    @NSCopying var notificationID: CKNotificationID? { get }
    var containerIdentifier: String? { get }
    var isPruned: Bool { get }
    var alertBody: String? { get }
    var alertLocalizationKey: String? { get }
    var alertLocalizationArgs: [String]? { get }
    var alertActionLocalizationKey: String? { get }
    var alertLaunchImage: String? { get }
    @NSCopying var badge: NSNumber? { get }
    var soundName: String? { get }
    var subscriptionID: String? { get }
    var category: String? { get }
}
--
To
class CKNotification : NSObject {
    init()
    convenience init(fromRemoteNotificationDictionary notificationDictionary: [String : NSObject])
    class func fromRemoteNotificationDictionary(_ notificationDictionary: [String : NSObject]) -> Self
    var notificationType: CKNotificationType { get }
    @NSCopying var notificationID: CKNotificationID? { get }
    var containerIdentifier: String? { get }
    var isPruned: Bool { get }
    var alertBody: String? { get }
    var alertLocalizationKey: String? { get }
    var alertLocalizationArgs: [String]? { get }
    var alertActionLocalizationKey: String? { get }
    var alertLaunchImage: String? { get }
    @NSCopying var badge: NSNumber? { get }
    var soundName: String? { get }
    var subscriptionID: String? { get }
    var category: String? { get }
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
    func performSelector(inBackground aSelector: Selector, with arg: Any?)
    class func classForKeyedUnarchiver() -> AnyClass
    var classForKeyedArchiver: AnyClass? { get }
    func replacementObject(for archiver: NSKeyedArchiver) -> Any?
    class func classFallbacksForKeyedArchiver() -> [String]
    class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
    class func automaticallyNotifiesObservers(forKey key: String) -> Bool
    var observationInfo: UnsafeMutableRawPointer?
    func willChangeValue(forKey key: String)
    func didChangeValue(forKey key: String)
    func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
    func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
    class var accessInstanceVariablesDirectly: Bool { get }
    func value(forKey key: String) -> Any?
    func setValue(_ value: Any?, forKey key: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
    func mutableArrayValue(forKey key: String) -> NSMutableArray
    func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
    func mutableSetValue(forKey key: String) -> NSMutableSet
    func value(forKeyPath keyPath: String) -> Any?
    func setValue(_ value: Any?, forKeyPath keyPath: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
    func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
    func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
    func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
    func value(forUndefinedKey key: String) -> Any?
    func setValue(_ value: Any?, forUndefinedKey key: String)
    func setNilValueForKey(_ key: String)
    func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
    func setValuesForKeys(_ keyedValues: [String : Any])
    func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
    func fileManager(_ fm: FileManager, willProcessPath path: String)
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
    var autoContentAccessingProxy: Any { get }
    class func version() -> Int
    class func setVersion(_ aVersion: Int)
    var classForCoder: AnyClass { get }
    func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension CKNotification : CVarArg {
}
extension CKNotification : Equatable, Hashable {
    var hashValue: Int { get }
}
CVarArg, Equatable, Hashable

DeclarationProtocols
From
class CKNotificationID : NSObject, NSCopying, NSSecureCoding {
}
NSCopying, NSSecureCoding
To
class CKNotificationID : NSObject, NSCopying, NSSecureCoding {
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
    func performSelector(inBackground aSelector: Selector, with arg: Any?)
    class func classForKeyedUnarchiver() -> AnyClass
    var classForKeyedArchiver: AnyClass? { get }
    func replacementObject(for archiver: NSKeyedArchiver) -> Any?
    class func classFallbacksForKeyedArchiver() -> [String]
    class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
    class func automaticallyNotifiesObservers(forKey key: String) -> Bool
    var observationInfo: UnsafeMutableRawPointer?
    func willChangeValue(forKey key: String)
    func didChangeValue(forKey key: String)
    func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
    func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
    class var accessInstanceVariablesDirectly: Bool { get }
    func value(forKey key: String) -> Any?
    func setValue(_ value: Any?, forKey key: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
    func mutableArrayValue(forKey key: String) -> NSMutableArray
    func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
    func mutableSetValue(forKey key: String) -> NSMutableSet
    func value(forKeyPath keyPath: String) -> Any?
    func setValue(_ value: Any?, forKeyPath keyPath: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
    func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
    func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
    func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
    func value(forUndefinedKey key: String) -> Any?
    func setValue(_ value: Any?, forUndefinedKey key: String)
    func setNilValueForKey(_ key: String)
    func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
    func setValuesForKeys(_ keyedValues: [String : Any])
    func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
    func fileManager(_ fm: FileManager, willProcessPath path: String)
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
    var autoContentAccessingProxy: Any { get }
    class func version() -> Int
    class func setVersion(_ aVersion: Int)
    var classForCoder: AnyClass { get }
    func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension CKNotificationID : CVarArg {
}
extension CKNotificationID : Equatable, Hashable {
    var hashValue: Int { get }
}
CVarArg, Equatable, Hashable, NSCopying, NSSecureCoding

DeclarationProtocols
From
class CKNotificationInfo : NSObject, NSSecureCoding, NSCopying {
    var alertBody: String?
    var alertLocalizationKey: String?
    var alertLocalizationArgs: [String]?
    var alertActionLocalizationKey: String?
    var alertLaunchImage: String?
    var soundName: String?
    var desiredKeys: [String]?
    var shouldBadge: Bool
    var shouldSendContentAvailable: Bool
    var category: String?
}
NSCopying, NSSecureCoding
To
class CKNotificationInfo : NSObject, NSSecureCoding, NSCopying {
    var alertBody: String?
    var alertLocalizationKey: String?
    var alertLocalizationArgs: [String]?
    var alertActionLocalizationKey: String?
    var alertLaunchImage: String?
    var soundName: String?
    var desiredKeys: [String]?
    var shouldBadge: Bool
    var shouldSendContentAvailable: Bool
    var category: String?
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
    func performSelector(inBackground aSelector: Selector, with arg: Any?)
    class func classForKeyedUnarchiver() -> AnyClass
    var classForKeyedArchiver: AnyClass? { get }
    func replacementObject(for archiver: NSKeyedArchiver) -> Any?
    class func classFallbacksForKeyedArchiver() -> [String]
    class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
    class func automaticallyNotifiesObservers(forKey key: String) -> Bool
    var observationInfo: UnsafeMutableRawPointer?
    func willChangeValue(forKey key: String)
    func didChangeValue(forKey key: String)
    func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
    func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
    class var accessInstanceVariablesDirectly: Bool { get }
    func value(forKey key: String) -> Any?
    func setValue(_ value: Any?, forKey key: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
    func mutableArrayValue(forKey key: String) -> NSMutableArray
    func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
    func mutableSetValue(forKey key: String) -> NSMutableSet
    func value(forKeyPath keyPath: String) -> Any?
    func setValue(_ value: Any?, forKeyPath keyPath: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
    func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
    func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
    func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
    func value(forUndefinedKey key: String) -> Any?
    func setValue(_ value: Any?, forUndefinedKey key: String)
    func setNilValueForKey(_ key: String)
    func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
    func setValuesForKeys(_ keyedValues: [String : Any])
    func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
    func fileManager(_ fm: FileManager, willProcessPath path: String)
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
    var autoContentAccessingProxy: Any { get }
    class func version() -> Int
    class func setVersion(_ aVersion: Int)
    var classForCoder: AnyClass { get }
    func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension CKNotificationInfo : CVarArg {
}
extension CKNotificationInfo : Equatable, Hashable {
    var hashValue: Int { get }
}
CVarArg, Equatable, Hashable, NSCopying, NSSecureCoding

Declaration
From
enum CKNotificationType : Int {
    case Query
    case RecordZone
    case ReadNotification
}
To
enum CKNotificationType : Int {
    case query
    case recordZone
    case readNotification
    case database
}

Declaration
From
case Query
To
case query

Declaration
From
case ReadNotification
To
case readNotification

Declaration
From
case RecordZone
To
case recordZone

Modified CKOperation
DeclarationProtocols
From
class CKOperation : NSOperation {
    init()
    var container: CKContainer?
    var usesBackgroundSession: Bool
    var allowsCellularAccess: Bool
    var operationID: String { get }
    var longLived: Bool
    var longLivedOperationWasPersistedBlock: () -> Void
}
--
To
class CKOperation : Operation {
    init()
    var container: CKContainer?
    var usesBackgroundSession: Bool
    var allowsCellularAccess: Bool
    var operationID: String { get }
    var isLongLived: Bool
    var timeoutIntervalForRequest: TimeInterval
    var timeoutIntervalForResource: TimeInterval
    var longLivedOperationWasPersistedBlock: () -> Swift.Void
    enum QueuePriority : Int {
        case veryLow
        case low
        case normal
        case high
        case veryHigh
    }
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
    func performSelector(inBackground aSelector: Selector, with arg: Any?)
    class func classForKeyedUnarchiver() -> AnyClass
    var classForKeyedArchiver: AnyClass? { get }
    func replacementObject(for archiver: NSKeyedArchiver) -> Any?
    class func classFallbacksForKeyedArchiver() -> [String]
    class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
    class func automaticallyNotifiesObservers(forKey key: String) -> Bool
    var observationInfo: UnsafeMutableRawPointer?
    func willChangeValue(forKey key: String)
    func didChangeValue(forKey key: String)
    func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
    func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
    class var accessInstanceVariablesDirectly: Bool { get }
    func value(forKey key: String) -> Any?
    func setValue(_ value: Any?, forKey key: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
    func mutableArrayValue(forKey key: String) -> NSMutableArray
    func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
    func mutableSetValue(forKey key: String) -> NSMutableSet
    func value(forKeyPath keyPath: String) -> Any?
    func setValue(_ value: Any?, forKeyPath keyPath: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
    func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
    func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
    func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
    func value(forUndefinedKey key: String) -> Any?
    func setValue(_ value: Any?, forUndefinedKey key: String)
    func setNilValueForKey(_ key: String)
    func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
    func setValuesForKeys(_ keyedValues: [String : Any])
    func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
    func fileManager(_ fm: FileManager, willProcessPath path: String)
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
    var autoContentAccessingProxy: Any { get }
    class func version() -> Int
    class func setVersion(_ aVersion: Int)
    var classForCoder: AnyClass { get }
    func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension CKOperation : CVarArg {
}
extension CKOperation : Equatable, Hashable {
    var hashValue: Int { get }
}
CVarArg, Equatable, Hashable

Declaration
From
var longLived: Bool
To
var isLongLived: Bool

Declaration
From
var longLivedOperationWasPersistedBlock: () -> Void
To
var longLivedOperationWasPersistedBlock: () -> Swift.Void

Modified CKQuery
DeclarationProtocols
From
class CKQuery : NSObject, NSSecureCoding, NSCopying {
    convenience init()
    init(coder aDecoder: NSCoder)
    init(recordType recordType: String, predicate predicate: NSPredicate)
    var recordType: String { get }
    @NSCopying var predicate: NSPredicate { get }
    var sortDescriptors: [NSSortDescriptor]?
}
NSCopying, NSSecureCoding
To
class CKQuery : NSObject, NSSecureCoding, NSCopying {
    convenience init()
    init(coder aDecoder: NSCoder)
    init(recordType recordType: String, predicate predicate: NSPredicate)
    var recordType: String { get }
    @NSCopying var predicate: NSPredicate { get }
    var sortDescriptors: [NSSortDescriptor]?
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
    func performSelector(inBackground aSelector: Selector, with arg: Any?)
    class func classForKeyedUnarchiver() -> AnyClass
    var classForKeyedArchiver: AnyClass? { get }
    func replacementObject(for archiver: NSKeyedArchiver) -> Any?
    class func classFallbacksForKeyedArchiver() -> [String]
    class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
    class func automaticallyNotifiesObservers(forKey key: String) -> Bool
    var observationInfo: UnsafeMutableRawPointer?
    func willChangeValue(forKey key: String)
    func didChangeValue(forKey key: String)
    func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
    func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
    class var accessInstanceVariablesDirectly: Bool { get }
    func value(forKey key: String) -> Any?
    func setValue(_ value: Any?, forKey key: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
    func mutableArrayValue(forKey key: String) -> NSMutableArray
    func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
    func mutableSetValue(forKey key: String) -> NSMutableSet
    func value(forKeyPath keyPath: String) -> Any?
    func setValue(_ value: Any?, forKeyPath keyPath: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
    func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
    func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
    func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
    func value(forUndefinedKey key: String) -> Any?
    func setValue(_ value: Any?, forUndefinedKey key: String)
    func setNilValueForKey(_ key: String)
    func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
    func setValuesForKeys(_ keyedValues: [String : Any])
    func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
    func fileManager(_ fm: FileManager, willProcessPath path: String)
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
    var autoContentAccessingProxy: Any { get }
    class func version() -> Int
    class func setVersion(_ aVersion: Int)
    var classForCoder: AnyClass { get }
    func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension CKQuery : CVarArg {
}
extension CKQuery : Equatable, Hashable {
    var hashValue: Int { get }
}
CVarArg, Equatable, Hashable, NSCopying, NSSecureCoding

Modified CKQueryCursor
DeclarationProtocols
From
class CKQueryCursor : NSObject, NSCopying, NSSecureCoding {
    init()
}
NSCopying, NSSecureCoding
To
class CKQueryCursor : NSObject, NSCopying, NSSecureCoding {
    init()
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
    func performSelector(inBackground aSelector: Selector, with arg: Any?)
    class func classForKeyedUnarchiver() -> AnyClass
    var classForKeyedArchiver: AnyClass? { get }
    func replacementObject(for archiver: NSKeyedArchiver) -> Any?
    class func classFallbacksForKeyedArchiver() -> [String]
    class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
    class func automaticallyNotifiesObservers(forKey key: String) -> Bool
    var observationInfo: UnsafeMutableRawPointer?
    func willChangeValue(forKey key: String)
    func didChangeValue(forKey key: String)
    func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
    func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
    class var accessInstanceVariablesDirectly: Bool { get }
    func value(forKey key: String) -> Any?
    func setValue(_ value: Any?, forKey key: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
    func mutableArrayValue(forKey key: String) -> NSMutableArray
    func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
    func mutableSetValue(forKey key: String) -> NSMutableSet
    func value(forKeyPath keyPath: String) -> Any?
    func setValue(_ value: Any?, forKeyPath keyPath: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
    func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
    func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
    func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
    func value(forUndefinedKey key: String) -> Any?
    func setValue(_ value: Any?, forUndefinedKey key: String)
    func setNilValueForKey(_ key: String)
    func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
    func setValuesForKeys(_ keyedValues: [String : Any])
    func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
    func fileManager(_ fm: FileManager, willProcessPath path: String)
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
    var autoContentAccessingProxy: Any { get }
    class func version() -> Int
    class func setVersion(_ aVersion: Int)
    var classForCoder: AnyClass { get }
    func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension CKQueryCursor : CVarArg {
}
extension CKQueryCursor : Equatable, Hashable {
    var hashValue: Int { get }
}
CVarArg, Equatable, Hashable, NSCopying, NSSecureCoding

Declaration
From
class CKQueryNotification : CKNotification {
    var queryNotificationReason: CKQueryNotificationReason { get }
    var recordFields: [String : CKRecordValue]? { get }
    @NSCopying var recordID: CKRecordID? { get }
    var isPublicDatabase: Bool { get }
}
To
class CKQueryNotification : CKNotification {
    var queryNotificationReason: CKQueryNotificationReason { get }
    var recordFields: [String : Any]? { get }
    @NSCopying var recordID: CKRecordID? { get }
    var isPublicDatabase: Bool { get }
    var databaseScope: CKDatabaseScope { get }
}

Deprecation
From--
ToiOS 10.0

Declaration
From
var recordFields: [String : CKRecordValue]? { get }
To
var recordFields: [String : Any]? { get }

Declaration
From
enum CKQueryNotificationReason : Int {
    case RecordCreated
    case RecordUpdated
    case RecordDeleted
}
To
enum CKQueryNotificationReason : Int {
    case recordCreated
    case recordUpdated
    case recordDeleted
}

Declaration
From
case RecordCreated
To
case recordCreated

Declaration
From
case RecordDeleted
To
case recordDeleted

Declaration
From
case RecordUpdated
To
case recordUpdated

Declaration
From
class CKQueryOperation : CKDatabaseOperation {
    init()
    convenience init(query query: CKQuery)
    convenience init(cursor cursor: CKQueryCursor)
    @NSCopying var query: CKQuery?
    @NSCopying var cursor: CKQueryCursor?
    @NSCopying var zoneID: CKRecordZoneID?
    var resultsLimit: Int
    var desiredKeys: [String]?
    var recordFetchedBlock: ((CKRecord) -> Void)?
    var queryCompletionBlock: ((CKQueryCursor?, NSError?) -> Void)?
}
To
class CKQueryOperation : CKDatabaseOperation {
    init()
    convenience init(query query: CKQuery)
    convenience init(cursor cursor: CKQueryCursor)
    @NSCopying var query: CKQuery?
    @NSCopying var cursor: CKQueryCursor?
    @NSCopying var zoneID: CKRecordZoneID?
    var resultsLimit: Int
    var desiredKeys: [String]?
    var recordFetchedBlock: ((CKRecord) -> Swift.Void)?
    var queryCompletionBlock: ((CKQueryCursor?, Error?) -> Swift.Void)?
}

Declaration
From
var queryCompletionBlock: ((CKQueryCursor?, NSError?) -> Void)?
To
var queryCompletionBlock: ((CKQueryCursor?, Error?) -> Swift.Void)?

Declaration
From
var recordFetchedBlock: ((CKRecord) -> Void)?
To
var recordFetchedBlock: ((CKRecord) -> Swift.Void)?

Modified CKRecord
DeclarationProtocols
From
class CKRecord : NSObject, NSSecureCoding, NSCopying {
    init()
    init(recordType recordType: String)
    init(recordType recordType: String, recordID recordID: CKRecordID)
    init(recordType recordType: String, zoneID zoneID: CKRecordZoneID)
    var recordType: String { get }
    @NSCopying var recordID: CKRecordID { get }
    var recordChangeTag: String? { get }
    @NSCopying var creatorUserRecordID: CKRecordID? { get }
    @NSCopying var creationDate: NSDate? { get }
    @NSCopying var lastModifiedUserRecordID: CKRecordID? { get }
    @NSCopying var modificationDate: NSDate? { get }
    func objectForKey(_ key: String) -> CKRecordValue?
    func setObject(_ object: CKRecordValue?, forKey key: String)
    func allKeys() -> [String]
    func allTokens() -> [String]
    subscript (_ key: String) -> CKRecordValue?
    func objectForKeyedSubscript(_ key: String) -> CKRecordValue?
    func setObject(_ object: CKRecordValue?, forKeyedSubscript key: String)
    func changedKeys() -> [String]
    func encodeSystemFieldsWithCoder(_ coder: NSCoder)
}
NSCopying, NSSecureCoding
To
class CKRecord : NSObject, NSSecureCoding, NSCopying {
    init()
    init(recordType recordType: String)
    init(recordType recordType: String, recordID recordID: CKRecordID)
    init(recordType recordType: String, zoneID zoneID: CKRecordZoneID)
    var recordType: String { get }
    @NSCopying var recordID: CKRecordID { get }
    var recordChangeTag: String? { get }
    @NSCopying var creatorUserRecordID: CKRecordID? { get }
    var creationDate: Date? { get }
    @NSCopying var lastModifiedUserRecordID: CKRecordID? { get }
    var modificationDate: Date? { get }
    func object(forKey key: String) -> CKRecordValue?
    func setObject(_ object: CKRecordValue?, forKey key: String)
    func allKeys() -> [String]
    func allTokens() -> [String]
    subscript(_ key: String) -> CKRecordValue?
    func objectForKeyedSubscript(_ key: String) -> CKRecordValue?
    func setObject(_ object: CKRecordValue?, forKeyedSubscript key: String)
    func changedKeys() -> [String]
    func encodeSystemFields(with coder: NSCoder)
    @NSCopying var share: CKReference? { get }
    @NSCopying var parent: CKReference?
    func setParent(_ parentRecord: CKRecord?)
    func setParent(_ parentRecordID: CKRecordID?)
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
    func performSelector(inBackground aSelector: Selector, with arg: Any?)
    class func classForKeyedUnarchiver() -> AnyClass
    var classForKeyedArchiver: AnyClass? { get }
    func replacementObject(for archiver: NSKeyedArchiver) -> Any?
    class func classFallbacksForKeyedArchiver() -> [String]
    class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
    class func automaticallyNotifiesObservers(forKey key: String) -> Bool
    var observationInfo: UnsafeMutableRawPointer?
    func willChangeValue(forKey key: String)
    func didChangeValue(forKey key: String)
    func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
    func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
    class var accessInstanceVariablesDirectly: Bool { get }
    func value(forKey key: String) -> Any?
    func setValue(_ value: Any?, forKey key: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
    func mutableArrayValue(forKey key: String) -> NSMutableArray
    func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
    func mutableSetValue(forKey key: String) -> NSMutableSet
    func value(forKeyPath keyPath: String) -> Any?
    func setValue(_ value: Any?, forKeyPath keyPath: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
    func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
    func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
    func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
    func value(forUndefinedKey key: String) -> Any?
    func setValue(_ value: Any?, forUndefinedKey key: String)
    func setNilValueForKey(_ key: String)
    func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
    func setValuesForKeys(_ keyedValues: [String : Any])
    func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
    func fileManager(_ fm: FileManager, willProcessPath path: String)
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
    var autoContentAccessingProxy: Any { get }
    class func version() -> Int
    class func setVersion(_ aVersion: Int)
    var classForCoder: AnyClass { get }
    func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension CKRecord : CVarArg {
}
extension CKRecord : Equatable, Hashable {
    var hashValue: Int { get }
}
CVarArg, Equatable, Hashable, NSCopying, NSSecureCoding

Declaration
From
@NSCopying var creationDate: NSDate? { get }
To
var creationDate: Date? { get }

Declaration
From
func encodeSystemFieldsWithCoder(_ coder: NSCoder)
To
func encodeSystemFields(with coder: NSCoder)

Declaration
From
@NSCopying var modificationDate: NSDate? { get }
To
var modificationDate: Date? { get }

Declaration
From
func objectForKey(_ key: String) -> CKRecordValue?
To
func object(forKey key: String) -> CKRecordValue?

Declaration
From
subscript (_ key: String) -> CKRecordValue?
To
subscript(_ key: String) -> CKRecordValue?

Modified CKRecordID
DeclarationProtocols
From
class CKRecordID : NSObject, NSSecureCoding, NSCopying {
    convenience init()
    convenience init(recordName recordName: String)
    init(recordName recordName: String, zoneID zoneID: CKRecordZoneID)
    var recordName: String { get }
    var zoneID: CKRecordZoneID { get }
}
NSCopying, NSSecureCoding
To
class CKRecordID : NSObject, NSSecureCoding, NSCopying {
    convenience init()
    convenience init(recordName recordName: String)
    init(recordName recordName: String, zoneID zoneID: CKRecordZoneID)
    var recordName: String { get }
    var zoneID: CKRecordZoneID { get }
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
    func performSelector(inBackground aSelector: Selector, with arg: Any?)
    class func classForKeyedUnarchiver() -> AnyClass
    var classForKeyedArchiver: AnyClass? { get }
    func replacementObject(for archiver: NSKeyedArchiver) -> Any?
    class func classFallbacksForKeyedArchiver() -> [String]
    class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
    class func automaticallyNotifiesObservers(forKey key: String) -> Bool
    var observationInfo: UnsafeMutableRawPointer?
    func willChangeValue(forKey key: String)
    func didChangeValue(forKey key: String)
    func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
    func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
    class var accessInstanceVariablesDirectly: Bool { get }
    func value(forKey key: String) -> Any?
    func setValue(_ value: Any?, forKey key: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
    func mutableArrayValue(forKey key: String) -> NSMutableArray
    func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
    func mutableSetValue(forKey key: String) -> NSMutableSet
    func value(forKeyPath keyPath: String) -> Any?
    func setValue(_ value: Any?, forKeyPath keyPath: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
    func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
    func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
    func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
    func value(forUndefinedKey key: String) -> Any?
    func setValue(_ value: Any?, forUndefinedKey key: String)
    func setNilValueForKey(_ key: String)
    func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
    func setValuesForKeys(_ keyedValues: [String : Any])
    func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
    func fileManager(_ fm: FileManager, willProcessPath path: String)
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
    var autoContentAccessingProxy: Any { get }
    class func version() -> Int
    class func setVersion(_ aVersion: Int)
    var classForCoder: AnyClass { get }
    func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension CKRecordID : CVarArg {
}
extension CKRecordID : Equatable, Hashable {
    var hashValue: Int { get }
}
CVarArg, Equatable, Hashable, NSCopying, NSSecureCoding

Declaration
From
enum CKRecordSavePolicy : Int {
    case IfServerRecordUnchanged
    case ChangedKeys
    case AllKeys
}
To
enum CKRecordSavePolicy : Int {
    case ifServerRecordUnchanged
    case changedKeys
    case allKeys
}

Declaration
From
case AllKeys
To
case allKeys

Declaration
From
case ChangedKeys
To
case changedKeys

Declaration
From
case IfServerRecordUnchanged
To
case ifServerRecordUnchanged

Modified CKRecordZone
DeclarationProtocols
From
class CKRecordZone : NSObject, NSSecureCoding, NSCopying {
    class func defaultRecordZone() -> CKRecordZone
    init()
    init(zoneName zoneName: String)
    init(zoneID zoneID: CKRecordZoneID)
    var zoneID: CKRecordZoneID { get }
    var capabilities: CKRecordZoneCapabilities { get }
}
NSCopying, NSSecureCoding
To
class CKRecordZone : NSObject, NSSecureCoding, NSCopying {
    class func `default`() -> CKRecordZone
    init()
    init(zoneName zoneName: String)
    init(zoneID zoneID: CKRecordZoneID)
    var zoneID: CKRecordZoneID { get }
    var capabilities: CKRecordZoneCapabilities { get }
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
    func performSelector(inBackground aSelector: Selector, with arg: Any?)
    class func classForKeyedUnarchiver() -> AnyClass
    var classForKeyedArchiver: AnyClass? { get }
    func replacementObject(for archiver: NSKeyedArchiver) -> Any?
    class func classFallbacksForKeyedArchiver() -> [String]
    class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
    class func automaticallyNotifiesObservers(forKey key: String) -> Bool
    var observationInfo: UnsafeMutableRawPointer?
    func willChangeValue(forKey key: String)
    func didChangeValue(forKey key: String)
    func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
    func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
    class var accessInstanceVariablesDirectly: Bool { get }
    func value(forKey key: String) -> Any?
    func setValue(_ value: Any?, forKey key: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
    func mutableArrayValue(forKey key: String) -> NSMutableArray
    func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
    func mutableSetValue(forKey key: String) -> NSMutableSet
    func value(forKeyPath keyPath: String) -> Any?
    func setValue(_ value: Any?, forKeyPath keyPath: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
    func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
    func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
    func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
    func value(forUndefinedKey key: String) -> Any?
    func setValue(_ value: Any?, forUndefinedKey key: String)
    func setNilValueForKey(_ key: String)
    func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
    func setValuesForKeys(_ keyedValues: [String : Any])
    func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
    func fileManager(_ fm: FileManager, willProcessPath path: String)
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
    var autoContentAccessingProxy: Any { get }
    class func version() -> Int
    class func setVersion(_ aVersion: Int)
    var classForCoder: AnyClass { get }
    func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension CKRecordZone : CVarArg {
}
extension CKRecordZone : Equatable, Hashable {
    var hashValue: Int { get }
}
CVarArg, Equatable, Hashable, NSCopying, NSSecureCoding

Declaration
From
class func defaultRecordZone() -> CKRecordZone
To
class func `default`() -> CKRecordZone

DeclarationProtocols
From
struct CKRecordZoneCapabilities : OptionSetType {
    init(rawValue rawValue: UInt)
    static var FetchChanges: CKRecordZoneCapabilities { get }
    static var Atomic: CKRecordZoneCapabilities { get }
}
OptionSetType
To
struct CKRecordZoneCapabilities : OptionSet {
    init(rawValue rawValue: UInt)
    static var fetchChanges: CKRecordZoneCapabilities { get }
    static var atomic: CKRecordZoneCapabilities { get }
    static var sharing: CKRecordZoneCapabilities { get }
    func intersect(_ other: CKRecordZoneCapabilities) -> CKRecordZoneCapabilities
    func exclusiveOr(_ other: CKRecordZoneCapabilities) -> CKRecordZoneCapabilities
    mutating func unionInPlace(_ other: CKRecordZoneCapabilities)
    mutating func intersectInPlace(_ other: CKRecordZoneCapabilities)
    mutating func exclusiveOrInPlace(_ other: CKRecordZoneCapabilities)
    func isSubsetOf(_ other: CKRecordZoneCapabilities) -> Bool
    func isDisjointWith(_ other: CKRecordZoneCapabilities) -> Bool
    func isSupersetOf(_ other: CKRecordZoneCapabilities) -> Bool
    mutating func subtractInPlace(_ other: CKRecordZoneCapabilities)
    func isStrictSupersetOf(_ other: CKRecordZoneCapabilities) -> Bool
    func isStrictSubsetOf(_ other: CKRecordZoneCapabilities) -> Bool
}
extension CKRecordZoneCapabilities {
    func union(_ other: CKRecordZoneCapabilities) -> CKRecordZoneCapabilities
    func intersection(_ other: CKRecordZoneCapabilities) -> CKRecordZoneCapabilities
    func symmetricDifference(_ other: CKRecordZoneCapabilities) -> CKRecordZoneCapabilities
}
extension CKRecordZoneCapabilities {
    func contains(_ member: CKRecordZoneCapabilities) -> Bool
    mutating func insert(_ newMember: CKRecordZoneCapabilities) -> (inserted: Bool, memberAfterInsert: CKRecordZoneCapabilities)
    mutating func remove(_ member: CKRecordZoneCapabilities) -> CKRecordZoneCapabilities?
    mutating func update(with newMember: CKRecordZoneCapabilities) -> CKRecordZoneCapabilities?
}
extension CKRecordZoneCapabilities {
    convenience init()
    mutating func formUnion(_ other: CKRecordZoneCapabilities)
    mutating func formIntersection(_ other: CKRecordZoneCapabilities)
    mutating func formSymmetricDifference(_ other: CKRecordZoneCapabilities)
}
extension CKRecordZoneCapabilities {
    convenience init<S : Sequence where S.Iterator.Element == CKRecordZoneCapabilities>(_ sequence: S)
    convenience init(arrayLiteral arrayLiteral: CKRecordZoneCapabilities...)
    mutating func subtract(_ other: CKRecordZoneCapabilities)
    func isSubset(of other: CKRecordZoneCapabilities) -> Bool
    func isSuperset(of other: CKRecordZoneCapabilities) -> Bool
    func isDisjoint(with other: CKRecordZoneCapabilities) -> Bool
    func subtracting(_ other: CKRecordZoneCapabilities) -> CKRecordZoneCapabilities
    var isEmpty: Bool { get }
    func isStrictSuperset(of other: CKRecordZoneCapabilities) -> Bool
    func isStrictSubset(of other: CKRecordZoneCapabilities) -> Bool
}
OptionSet

Declaration
From
static var Atomic: CKRecordZoneCapabilities { get }
To
static var atomic: CKRecordZoneCapabilities { get }

Declaration
From
static var FetchChanges: CKRecordZoneCapabilities { get }
To
static var fetchChanges: CKRecordZoneCapabilities { get }

DeclarationProtocols
From
class CKRecordZoneID : NSObject, NSSecureCoding, NSCopying {
    convenience init()
    init(zoneName zoneName: String, ownerName ownerName: String)
    var zoneName: String { get }
    var ownerName: String { get }
}
NSCopying, NSSecureCoding
To
class CKRecordZoneID : NSObject, NSSecureCoding, NSCopying {
    convenience init()
    init(zoneName zoneName: String, ownerName ownerName: String)
    var zoneName: String { get }
    var ownerName: String { get }
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
    func performSelector(inBackground aSelector: Selector, with arg: Any?)
    class func classForKeyedUnarchiver() -> AnyClass
    var classForKeyedArchiver: AnyClass? { get }
    func replacementObject(for archiver: NSKeyedArchiver) -> Any?
    class func classFallbacksForKeyedArchiver() -> [String]
    class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
    class func automaticallyNotifiesObservers(forKey key: String) -> Bool
    var observationInfo: UnsafeMutableRawPointer?
    func willChangeValue(forKey key: String)
    func didChangeValue(forKey key: String)
    func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
    func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
    class var accessInstanceVariablesDirectly: Bool { get }
    func value(forKey key: String) -> Any?
    func setValue(_ value: Any?, forKey key: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
    func mutableArrayValue(forKey key: String) -> NSMutableArray
    func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
    func mutableSetValue(forKey key: String) -> NSMutableSet
    func value(forKeyPath keyPath: String) -> Any?
    func setValue(_ value: Any?, forKeyPath keyPath: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
    func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
    func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
    func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
    func value(forUndefinedKey key: String) -> Any?
    func setValue(_ value: Any?, forUndefinedKey key: String)
    func setNilValueForKey(_ key: String)
    func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
    func setValuesForKeys(_ keyedValues: [String : Any])
    func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
    func fileManager(_ fm: FileManager, willProcessPath path: String)
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
    var autoContentAccessingProxy: Any { get }
    class func version() -> Int
    class func setVersion(_ aVersion: Int)
    var classForCoder: AnyClass { get }
    func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension CKRecordZoneID : CVarArg {
}
extension CKRecordZoneID : Equatable, Hashable {
    var hashValue: Int { get }
}
CVarArg, Equatable, Hashable, NSCopying, NSSecureCoding

Declaration
From
class CKRecordZoneNotification : CKNotification {
    @NSCopying var recordZoneID: CKRecordZoneID? { get }
}
To
class CKRecordZoneNotification : CKNotification {
    @NSCopying var recordZoneID: CKRecordZoneID? { get }
    var databaseScope: CKDatabaseScope { get }
}

Modified CKReference
DeclarationProtocols
From
class CKReference : NSObject, NSSecureCoding, NSCopying {
    convenience init()
    init(recordID recordID: CKRecordID, action action: CKReferenceAction)
    convenience init(record record: CKRecord, action action: CKReferenceAction)
    var referenceAction: CKReferenceAction { get }
    @NSCopying var recordID: CKRecordID { get }
}
extension CKReference : CKRecordValue {
}
CKRecordValue, NSCopying, NSSecureCoding
To
class CKReference : NSObject, NSSecureCoding, NSCopying {
    convenience init()
    init(recordID recordID: CKRecordID, action action: CKReferenceAction)
    convenience init(record record: CKRecord, action action: CKReferenceAction)
    var referenceAction: CKReferenceAction { get }
    @NSCopying var recordID: CKRecordID { get }
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
    func performSelector(inBackground aSelector: Selector, with arg: Any?)
    class func classForKeyedUnarchiver() -> AnyClass
    var classForKeyedArchiver: AnyClass? { get }
    func replacementObject(for archiver: NSKeyedArchiver) -> Any?
    class func classFallbacksForKeyedArchiver() -> [String]
    class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
    class func automaticallyNotifiesObservers(forKey key: String) -> Bool
    var observationInfo: UnsafeMutableRawPointer?
    func willChangeValue(forKey key: String)
    func didChangeValue(forKey key: String)
    func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
    func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
    class var accessInstanceVariablesDirectly: Bool { get }
    func value(forKey key: String) -> Any?
    func setValue(_ value: Any?, forKey key: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
    func mutableArrayValue(forKey key: String) -> NSMutableArray
    func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
    func mutableSetValue(forKey key: String) -> NSMutableSet
    func value(forKeyPath keyPath: String) -> Any?
    func setValue(_ value: Any?, forKeyPath keyPath: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
    func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
    func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
    func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
    func value(forUndefinedKey key: String) -> Any?
    func setValue(_ value: Any?, forUndefinedKey key: String)
    func setNilValueForKey(_ key: String)
    func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
    func setValuesForKeys(_ keyedValues: [String : Any])
    func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
    func fileManager(_ fm: FileManager, willProcessPath path: String)
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
    var autoContentAccessingProxy: Any { get }
    class func version() -> Int
    class func setVersion(_ aVersion: Int)
    var classForCoder: AnyClass { get }
    func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension CKReference : CKRecordValue {
}
extension CKReference : CVarArg {
}
extension CKReference : Equatable, Hashable {
    var hashValue: Int { get }
}
CKRecordValue, CVarArg, Equatable, Hashable, NSCopying, NSSecureCoding

Declaration
From
enum CKReferenceAction : UInt {
    case None
    case DeleteSelf
}
To
enum CKReferenceAction : UInt {
    case none
    case deleteSelf
}

Declaration
From
case DeleteSelf
To
case deleteSelf

Declaration
From
case None
To
case none

DeclarationProtocols
From
class CKServerChangeToken : NSObject, NSCopying, NSSecureCoding {
    init()
}
NSCopying, NSSecureCoding
To
class CKServerChangeToken : NSObject, NSCopying, NSSecureCoding {
    init()
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
    func performSelector(inBackground aSelector: Selector, with arg: Any?)
    class func classForKeyedUnarchiver() -> AnyClass
    var classForKeyedArchiver: AnyClass? { get }
    func replacementObject(for archiver: NSKeyedArchiver) -> Any?
    class func classFallbacksForKeyedArchiver() -> [String]
    class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
    class func automaticallyNotifiesObservers(forKey key: String) -> Bool
    var observationInfo: UnsafeMutableRawPointer?
    func willChangeValue(forKey key: String)
    func didChangeValue(forKey key: String)
    func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
    func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
    class var accessInstanceVariablesDirectly: Bool { get }
    func value(forKey key: String) -> Any?
    func setValue(_ value: Any?, forKey key: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
    func mutableArrayValue(forKey key: String) -> NSMutableArray
    func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
    func mutableSetValue(forKey key: String) -> NSMutableSet
    func value(forKeyPath keyPath: String) -> Any?
    func setValue(_ value: Any?, forKeyPath keyPath: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
    func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
    func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
    func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
    func value(forUndefinedKey key: String) -> Any?
    func setValue(_ value: Any?, forUndefinedKey key: String)
    func setNilValueForKey(_ key: String)
    func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
    func setValuesForKeys(_ keyedValues: [String : Any])
    func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
    func fileManager(_ fm: FileManager, willProcessPath path: String)
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
    var autoContentAccessingProxy: Any { get }
    class func version() -> Int
    class func setVersion(_ aVersion: Int)
    var classForCoder: AnyClass { get }
    func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension CKServerChangeToken : CVarArg {
}
extension CKServerChangeToken : Equatable, Hashable {
    var hashValue: Int { get }
}
CVarArg, Equatable, Hashable, NSCopying, NSSecureCoding

DeclarationProtocols
From
class CKSubscription : NSObject, NSSecureCoding, NSCopying {
    convenience init()
    init(coder aDecoder: NSCoder)
    convenience init(recordType recordType: String, predicate predicate: NSPredicate, options subscriptionOptions: CKSubscriptionOptions)
    init(recordType recordType: String, predicate predicate: NSPredicate, subscriptionID subscriptionID: String, options subscriptionOptions: CKSubscriptionOptions)
    convenience init(zoneID zoneID: CKRecordZoneID, options subscriptionOptions: CKSubscriptionOptions)
    init(zoneID zoneID: CKRecordZoneID, subscriptionID subscriptionID: String, options subscriptionOptions: CKSubscriptionOptions)
    var subscriptionID: String { get }
    var subscriptionType: CKSubscriptionType { get }
    var recordType: String? { get }
    @NSCopying var predicate: NSPredicate? { get }
    var subscriptionOptions: CKSubscriptionOptions { get }
    @NSCopying var notificationInfo: CKNotificationInfo?
    @NSCopying var zoneID: CKRecordZoneID?
}
NSCopying, NSSecureCoding
To
class CKSubscription : NSObject, NSSecureCoding, NSCopying {
    init()
    var subscriptionID: String { get }
    var subscriptionType: CKSubscriptionType { get }
    @NSCopying var notificationInfo: CKNotificationInfo?
    init(recordType recordType: String, predicate predicate: NSPredicate, options subscriptionOptions: CKSubscriptionOptions = [])
    init(recordType recordType: String, predicate predicate: NSPredicate, subscriptionID subscriptionID: String, options subscriptionOptions: CKSubscriptionOptions = [])
    var recordType: String? { get }
    @NSCopying var predicate: NSPredicate? { get }
    var subscriptionOptions: CKSubscriptionOptions { get }
    init(zoneID zoneID: CKRecordZoneID, options subscriptionOptions: CKSubscriptionOptions = [])
    init(zoneID zoneID: CKRecordZoneID, subscriptionID subscriptionID: String, options subscriptionOptions: CKSubscriptionOptions = [])
    @NSCopying var zoneID: CKRecordZoneID?
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
    func performSelector(inBackground aSelector: Selector, with arg: Any?)
    class func classForKeyedUnarchiver() -> AnyClass
    var classForKeyedArchiver: AnyClass? { get }
    func replacementObject(for archiver: NSKeyedArchiver) -> Any?
    class func classFallbacksForKeyedArchiver() -> [String]
    class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
    class func automaticallyNotifiesObservers(forKey key: String) -> Bool
    var observationInfo: UnsafeMutableRawPointer?
    func willChangeValue(forKey key: String)
    func didChangeValue(forKey key: String)
    func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
    func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
    class var accessInstanceVariablesDirectly: Bool { get }
    func value(forKey key: String) -> Any?
    func setValue(_ value: Any?, forKey key: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
    func mutableArrayValue(forKey key: String) -> NSMutableArray
    func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
    func mutableSetValue(forKey key: String) -> NSMutableSet
    func value(forKeyPath keyPath: String) -> Any?
    func setValue(_ value: Any?, forKeyPath keyPath: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
    func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
    func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
    func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
    func value(forUndefinedKey key: String) -> Any?
    func setValue(_ value: Any?, forUndefinedKey key: String)
    func setNilValueForKey(_ key: String)
    func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
    func setValuesForKeys(_ keyedValues: [String : Any])
    func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
    func fileManager(_ fm: FileManager, willProcessPath path: String)
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
    var autoContentAccessingProxy: Any { get }
    class func version() -> Int
    class func setVersion(_ aVersion: Int)
    var classForCoder: AnyClass { get }
    func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension CKSubscription : CVarArg {
}
extension CKSubscription : Equatable, Hashable {
    var hashValue: Int { get }
}
extension CKSubscription {
    init(recordType recordType: String, predicate predicate: NSPredicate, options subscriptionOptions: CKSubscriptionOptions = [])
    init(recordType recordType: String, predicate predicate: NSPredicate, subscriptionID subscriptionID: String, options subscriptionOptions: CKSubscriptionOptions = [])
    var recordType: String? { get }
    @NSCopying var predicate: NSPredicate? { get }
    var subscriptionOptions: CKSubscriptionOptions { get }
    init(zoneID zoneID: CKRecordZoneID, options subscriptionOptions: CKSubscriptionOptions = [])
    init(zoneID zoneID: CKRecordZoneID, subscriptionID subscriptionID: String, options subscriptionOptions: CKSubscriptionOptions = [])
    @NSCopying var zoneID: CKRecordZoneID?
}
CVarArg, Equatable, Hashable, NSCopying, NSSecureCoding

DeclarationDeprecation
From
convenience init(recordType recordType: String, predicate predicate: NSPredicate, options subscriptionOptions: CKSubscriptionOptions)
--
To
init(recordType recordType: String, predicate predicate: NSPredicate, options subscriptionOptions: CKSubscriptionOptions = [])
iOS 10.0

DeclarationDeprecation
From
init(recordType recordType: String, predicate predicate: NSPredicate, subscriptionID subscriptionID: String, options subscriptionOptions: CKSubscriptionOptions)
--
To
init(recordType recordType: String, predicate predicate: NSPredicate, subscriptionID subscriptionID: String, options subscriptionOptions: CKSubscriptionOptions = [])
iOS 10.0

DeclarationDeprecation
From
convenience init(zoneID zoneID: CKRecordZoneID, options subscriptionOptions: CKSubscriptionOptions)
--
To
init(zoneID zoneID: CKRecordZoneID, options subscriptionOptions: CKSubscriptionOptions = [])
iOS 10.0

DeclarationDeprecation
From
init(zoneID zoneID: CKRecordZoneID, subscriptionID subscriptionID: String, options subscriptionOptions: CKSubscriptionOptions)
--
To
init(zoneID zoneID: CKRecordZoneID, subscriptionID subscriptionID: String, options subscriptionOptions: CKSubscriptionOptions = [])
iOS 10.0

Deprecation
From--
ToiOS 10.0

Deprecation
From--
ToiOS 10.0

Deprecation
From--
ToiOS 10.0

Deprecation
From--
ToiOS 10.0

DeclarationProtocolsDeprecation
From
struct CKSubscriptionOptions : OptionSetType {
    init(rawValue rawValue: UInt)
    static var FiresOnRecordCreation: CKSubscriptionOptions { get }
    static var FiresOnRecordUpdate: CKSubscriptionOptions { get }
    static var FiresOnRecordDeletion: CKSubscriptionOptions { get }
    static var FiresOnce: CKSubscriptionOptions { get }
}
OptionSetType--
To
struct CKSubscriptionOptions : OptionSet {
    init(rawValue rawValue: UInt)
    static var firesOnRecordCreation: CKSubscriptionOptions { get }
    static var firesOnRecordUpdate: CKSubscriptionOptions { get }
    static var firesOnRecordDeletion: CKSubscriptionOptions { get }
    static var firesOnce: CKSubscriptionOptions { get }
    func intersect(_ other: CKSubscriptionOptions) -> CKSubscriptionOptions
    func exclusiveOr(_ other: CKSubscriptionOptions) -> CKSubscriptionOptions
    mutating func unionInPlace(_ other: CKSubscriptionOptions)
    mutating func intersectInPlace(_ other: CKSubscriptionOptions)
    mutating func exclusiveOrInPlace(_ other: CKSubscriptionOptions)
    func isSubsetOf(_ other: CKSubscriptionOptions) -> Bool
    func isDisjointWith(_ other: CKSubscriptionOptions) -> Bool
    func isSupersetOf(_ other: CKSubscriptionOptions) -> Bool
    mutating func subtractInPlace(_ other: CKSubscriptionOptions)
    func isStrictSupersetOf(_ other: CKSubscriptionOptions) -> Bool
    func isStrictSubsetOf(_ other: CKSubscriptionOptions) -> Bool
}
extension CKSubscriptionOptions {
    func union(_ other: CKSubscriptionOptions) -> CKSubscriptionOptions
    func intersection(_ other: CKSubscriptionOptions) -> CKSubscriptionOptions
    func symmetricDifference(_ other: CKSubscriptionOptions) -> CKSubscriptionOptions
}
extension CKSubscriptionOptions {
    func contains(_ member: CKSubscriptionOptions) -> Bool
    mutating func insert(_ newMember: CKSubscriptionOptions) -> (inserted: Bool, memberAfterInsert: CKSubscriptionOptions)
    mutating func remove(_ member: CKSubscriptionOptions) -> CKSubscriptionOptions?
    mutating func update(with newMember: CKSubscriptionOptions) -> CKSubscriptionOptions?
}
extension CKSubscriptionOptions {
    convenience init()
    mutating func formUnion(_ other: CKSubscriptionOptions)
    mutating func formIntersection(_ other: CKSubscriptionOptions)
    mutating func formSymmetricDifference(_ other: CKSubscriptionOptions)
}
extension CKSubscriptionOptions {
    convenience init<S : Sequence where S.Iterator.Element == CKSubscriptionOptions>(_ sequence: S)
    convenience init(arrayLiteral arrayLiteral: CKSubscriptionOptions...)
    mutating func subtract(_ other: CKSubscriptionOptions)
    func isSubset(of other: CKSubscriptionOptions) -> Bool
    func isSuperset(of other: CKSubscriptionOptions) -> Bool
    func isDisjoint(with other: CKSubscriptionOptions) -> Bool
    func subtracting(_ other: CKSubscriptionOptions) -> CKSubscriptionOptions
    var isEmpty: Bool { get }
    func isStrictSuperset(of other: CKSubscriptionOptions) -> Bool
    func isStrictSubset(of other: CKSubscriptionOptions) -> Bool
}
OptionSetiOS 10.0

DeclarationDeprecation
From
static var FiresOnce: CKSubscriptionOptions { get }
--
To
static var firesOnce: CKSubscriptionOptions { get }
iOS 10.0

DeclarationDeprecation
From
static var FiresOnRecordCreation: CKSubscriptionOptions { get }
--
To
static var firesOnRecordCreation: CKSubscriptionOptions { get }
iOS 10.0

DeclarationDeprecation
From
static var FiresOnRecordDeletion: CKSubscriptionOptions { get }
--
To
static var firesOnRecordDeletion: CKSubscriptionOptions { get }
iOS 10.0

DeclarationDeprecation
From
static var FiresOnRecordUpdate: CKSubscriptionOptions { get }
--
To
static var firesOnRecordUpdate: CKSubscriptionOptions { get }
iOS 10.0

Modified CKSubscriptionOptions.init(rawValue: UInt)
Deprecation
From--
ToiOS 10.0

Declaration
From
enum CKSubscriptionType : Int {
    case Query
    case RecordZone
}
To
enum CKSubscriptionType : Int {
    case query
    case recordZone
    case database
}

Declaration
From
case Query
To
case query

Declaration
From
case RecordZone
To
case recordZone

NameDeclaration
FromCKAccountChangedNotification
let CKAccountChangedNotification: String
ToCKAccountChanged
static let CKAccountChanged: NSNotification.Name

Declaration
From
typealias CKApplicationPermissionBlock = (CKApplicationPermissionStatus, NSError?) -> Void
To
typealias CKApplicationPermissionBlock = (CKApplicationPermissionStatus, Error?) -> Swift.Void

Deprecation
From--
ToiOS 10.0