Documentation Archive Developer
Search

CloudKit Changes for Swift

CloudKit

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Modified CKAsset
Protocols
FromAnyObject, CKRecordValue, NSObjectProtocol
ToCKRecordValue

Modified CKContainer
Protocols
FromAnyObject
To--

Modified CKDatabase
Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

DeclarationProtocols
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 : Hashable, Equatable, __BridgedNSError, ErrorType, RawRepresentable, _ObjectiveCBridgeableErrorType, _BridgedNSError {
}
extension CKErrorCode : Hashable, Equatable, __BridgedNSError, ErrorType, RawRepresentable, _ObjectiveCBridgeableErrorType, _BridgedNSError {
}
Equatable, ErrorType, Hashable, RawRepresentable
To
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 {
}
--

Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

DeclarationProtocols
From
class CKLocationSortDescriptor : NSSortDescriptor {
    convenience init()
    init(key key: String, relativeLocation relativeLocation: CLLocation)
    init(coder aDecoder: NSCoder)
    @NSCopying var relativeLocation: CLLocation { get }
}
AnyObject, NSCoding, NSSecureCoding
To
class CKLocationSortDescriptor : NSSortDescriptor, NSSecureCoding {
    convenience init()
    init(key key: String, relativeLocation relativeLocation: CLLocation)
    init(coder aDecoder: NSCoder)
    @NSCopying var relativeLocation: CLLocation { get }
}
NSSecureCoding

Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

DeclarationProtocols
From
class CKNotificationID : NSObject, NSCopying, NSSecureCoding, NSCoding {
}
AnyObject, NSCoding, NSCopying, NSSecureCoding
To
class CKNotificationID : NSObject, NSCopying, NSSecureCoding {
}
NSCopying, NSSecureCoding

DeclarationProtocols
From
class CKNotificationInfo : NSObject, NSSecureCoding, NSCoding, 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?
}
AnyObject, NSCoding, 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?
}
NSCopying, NSSecureCoding

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Modified CKOperation
Protocols
FromAnyObject
To--

Modified CKQuery
DeclarationProtocols
From
class CKQuery : NSObject, NSSecureCoding, NSCoding, 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]?
}
AnyObject, NSCoding, 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]?
}
NSCopying, NSSecureCoding

Modified CKQueryCursor
DeclarationProtocols
From
class CKQueryCursor : NSObject, NSCopying, NSSecureCoding, NSCoding {
    init()
}
AnyObject, NSCoding, NSCopying, NSSecureCoding
To
class CKQueryCursor : NSObject, NSCopying, NSSecureCoding {
    init()
}
NSCopying, NSSecureCoding

Protocols
FromAnyObject
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromAnyObject
To--

Modified CKRecord
DeclarationProtocols
From
class CKRecord : NSObject, NSSecureCoding, NSCoding, 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)
}
AnyObject, NSCoding, 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 }
    @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

Modified CKRecordID
DeclarationProtocols
From
class CKRecordID : NSObject, NSSecureCoding, NSCoding, NSCopying {
    convenience init()
    convenience init(recordName recordName: String)
    init(recordName recordName: String, zoneID zoneID: CKRecordZoneID)
    var recordName: String { get }
    var zoneID: CKRecordZoneID { get }
}
AnyObject, NSCoding, 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 }
}
NSCopying, NSSecureCoding

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Modified CKRecordZone
DeclarationProtocols
From
class CKRecordZone : NSObject, NSSecureCoding, NSCoding, NSCopying {
    class func defaultRecordZone() -> CKRecordZone
    init()
    init(zoneName zoneName: String)
    init(zoneID zoneID: CKRecordZoneID)
    var zoneID: CKRecordZoneID { get }
    var capabilities: CKRecordZoneCapabilities { get }
}
AnyObject, NSCoding, NSCopying, NSSecureCoding
To
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

DeclarationProtocols
From
class CKRecordZoneID : NSObject, NSSecureCoding, NSCoding, NSCopying {
    convenience init()
    init(zoneName zoneName: String, ownerName ownerName: String)
    var zoneName: String { get }
    var ownerName: String { get }
}
AnyObject, NSCoding, 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 }
}
NSCopying, NSSecureCoding

Protocols
FromAnyObject
To--

Modified CKReference
DeclarationProtocols
From
class CKReference : NSObject, NSSecureCoding, NSCoding, 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 {
}
AnyObject, CKRecordValue, NSCoding, NSCopying, NSObjectProtocol, 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 }
}
extension CKReference : CKRecordValue {
}
CKRecordValue, NSCopying, NSSecureCoding

Protocols
FromEquatable, Hashable, RawRepresentable
To--

DeclarationProtocols
From
class CKServerChangeToken : NSObject, NSCopying, NSSecureCoding, NSCoding {
    init()
}
AnyObject, NSCoding, NSCopying, NSSecureCoding
To
class CKServerChangeToken : NSObject, NSCopying, NSSecureCoding {
    init()
}
NSCopying, NSSecureCoding

DeclarationProtocols
From
class CKSubscription : NSObject, NSSecureCoding, NSCoding, 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?
}
AnyObject, NSCoding, NSCopying, NSSecureCoding
To
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

Protocols
FromEquatable, Hashable, RawRepresentable
To--