Documentation Archive Developer
Search

PushKit Changes for Swift

PushKit

Declaration
From
class PKPushRegistry : NSObject {
    weak var delegate: PKPushRegistryDelegate?
    var desiredPushTypes: Set<NSObject>!
    func pushTokenForType(_ type: String!) -> NSData!
    init!(queue queue: dispatch_queue_t!)
}
To
class PKPushRegistry : NSObject {
    weak var delegate: PKPushRegistryDelegate!
    var desiredPushTypes: Set<NSObject>!
    func pushTokenForType(_ type: String!) -> NSData!
    init!(queue queue: dispatch_queue_t!)
}

Declaration
From
weak var delegate: PKPushRegistryDelegate?
To
weak var delegate: PKPushRegistryDelegate!