Documentation Archive Developer
Search

PassKit Changes for Swift

PassKit

Added PKPassKitError.init(_nsError: NSError)
Added PKPayment
Modified PKContact
DeclarationProtocolsIntroduction
From
class PKContact : NSObject {
    var name: NSPersonNameComponents?
    var postalAddress: CNPostalAddress?
    var emailAddress: String?
    var phoneNumber: CNPhoneNumber?
    var supplementarySubLocality: String?
}
--watchOS 2.0
To
class PKContact : NSObject {
    var name: PersonNameComponents?
    var postalAddress: CNPostalAddress?
    var emailAddress: String?
    var phoneNumber: CNPhoneNumber?
    var supplementarySubLocality: 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 PKContact : CVarArg {
}
extension PKContact : Equatable, Hashable {
    var hashValue: Int { get }
}
CVarArg, Equatable, HashablewatchOS 3.0

Declaration
From
var name: NSPersonNameComponents?
To
var name: PersonNameComponents?

NameDeclaration
FromPKEncryptionSchemeECC_V2
let PKEncryptionSchemeECC_V2: String
ToECC_V2
static let ECC_V2: PKEncryptionScheme

Modified PKObject
DeclarationProtocols
From
class PKObject : NSObject {
}
--
To
class PKObject : NSObject {
    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 PKObject : CVarArg {
}
extension PKObject : Equatable, Hashable {
    var hashValue: Int { get }
}
CVarArg, Equatable, Hashable

Modified PKPass
Declaration
From
class PKPass : PKObject {
    init(data data: NSData, error error: NSErrorPointer)
    var passType: PKPassType { get }
    unowned(unsafe) var paymentPass: PKPaymentPass? { get }
    var serialNumber: String { get }
    var passTypeIdentifier: String { get }
    @NSCopying var webServiceURL: NSURL? { get }
    var authenticationToken: String? { get }
    @NSCopying var icon: UIImage { get }
    var localizedName: String { get }
    var localizedDescription: String { get }
    var organizationName: String { get }
    @NSCopying var relevantDate: NSDate? { get }
    var userInfo: [NSObject : AnyObject]? { get }
    @NSCopying var passURL: NSURL { get }
    var remotePass: Bool { get }
    var deviceName: String { get }
    func localizedValueForFieldKey(_ key: String) -> AnyObject?
}
To
class PKPass : PKObject {
    init(data data: Data, error error: NSErrorPointer)
    var passType: PKPassType { get }
    var paymentPass: PKPaymentPass? { get }
    var serialNumber: String { get }
    var passTypeIdentifier: String { get }
    var webServiceURL: URL? { get }
    var authenticationToken: String? { get }
    @NSCopying var icon: UIImage { get }
    var localizedName: String { get }
    var localizedDescription: String { get }
    var organizationName: String { get }
    var relevantDate: Date? { get }
    var userInfo: [AnyHashable : Any]? { get }
    var passURL: URL? { get }
    var isRemotePass: Bool { get }
    var deviceName: String { get }
    func localizedValue(forFieldKey key: String) -> Any?
}

Declaration
From
init(data data: NSData, error error: NSErrorPointer)
To
init(data data: Data, error error: NSErrorPointer)

Declaration
From
var remotePass: Bool { get }
To
var isRemotePass: Bool { get }

Declaration
From
func localizedValueForFieldKey(_ key: String) -> AnyObject?
To
func localizedValue(forFieldKey key: String) -> Any?

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

Declaration
From
unowned(unsafe) var paymentPass: PKPaymentPass? { get }
To
var paymentPass: PKPaymentPass? { get }

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

Declaration
From
var userInfo: [NSObject : AnyObject]? { get }
To
var userInfo: [AnyHashable : Any]? { get }

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

Declaration
From
enum PKPassKitErrorCode : Int {
    case UnknownError
    case InvalidDataError
    case UnsupportedVersionError
    case InvalidSignature
    case NotEntitledError
}
extension PKPassKitErrorCode : _BridgedNSError {
}
extension PKPassKitErrorCode : _BridgedNSError {
}
To
enum Code : Int {
        typealias _ErrorType = PKPassKitError
        case unknownError
        case invalidDataError
        case unsupportedVersionError
        case invalidSignature
        case notEntitledError
    }

Declaration
From
case InvalidDataError
To
case invalidDataError

Declaration
From
case InvalidSignature
To
case invalidSignature

Declaration
From
case NotEntitledError
To
case notEntitledError

Declaration
From
case UnknownError
To
case unknownError

Declaration
From
case UnsupportedVersionError
To
case unsupportedVersionError

Modified PKPassLibrary
DeclarationProtocols
From
class PKPassLibrary : NSObject {
    class func isPassLibraryAvailable() -> Bool
    class func requestAutomaticPassPresentationSuppressionWithResponseHandler(_ responseHandler: (PKAutomaticPassPresentationSuppressionResult) -> Void) -> PKSuppressionRequestToken
    class func endAutomaticPassPresentationSuppressionWithRequestToken(_ requestToken: PKSuppressionRequestToken)
    class func isSuppressingAutomaticPassPresentation() -> Bool
    class func isPaymentPassActivationAvailable() -> Bool
    func isPaymentPassActivationAvailable() -> Bool
    func passes() -> [PKPass]
    func passWithPassTypeIdentifier(_ identifier: String, serialNumber serialNumber: String) -> PKPass?
    func passesOfType(_ passType: PKPassType) -> [PKPass]
    func remotePaymentPasses() -> [PKPaymentPass]
    func removePass(_ pass: PKPass)
    func containsPass(_ pass: PKPass) -> Bool
    func replacePassWithPass(_ pass: PKPass) -> Bool
    func addPasses(_ passes: [PKPass], withCompletionHandler completion: ((PKPassLibraryAddPassesStatus) -> Void)?)
    func openPaymentSetup()
    func canAddPaymentPassWithPrimaryAccountIdentifier(_ primaryAccountIdentifier: String) -> Bool
    func activatePaymentPass(_ paymentPass: PKPaymentPass, withActivationData activationData: NSData, completion completion: ((Bool, NSError) -> Void)?)
    func activatePaymentPass(_ paymentPass: PKPaymentPass, withActivationCode activationCode: String, completion completion: ((Bool, NSError) -> Void)?)
}
--
To
class PKPassLibrary : NSObject {
    class func isPassLibraryAvailable() -> Bool
    class func requestAutomaticPassPresentationSuppression(responseHandler responseHandler: @escaping (PKAutomaticPassPresentationSuppressionResult) -> Swift.Void) -> PKSuppressionRequestToken
    class func endAutomaticPassPresentationSuppression(withRequestToken requestToken: PKSuppressionRequestToken)
    class func isSuppressingAutomaticPassPresentation() -> Bool
    class func isPaymentPassActivationAvailable() -> Bool
    func isPaymentPassActivationAvailable() -> Bool
    func passes() -> [PKPass]
    func pass(withPassTypeIdentifier identifier: String, serialNumber serialNumber: String) -> PKPass?
    func passes(of passType: PKPassType) -> [PKPass]
    func remotePaymentPasses() -> [PKPaymentPass]
    func removePass(_ pass: PKPass)
    func containsPass(_ pass: PKPass) -> Bool
    func replacePass(with pass: PKPass) -> Bool
    func addPasses(_ passes: [PKPass], withCompletionHandler completion: (@escaping (PKPassLibraryAddPassesStatus) -> Swift.Void)? = nil)
    func openPaymentSetup()
    func present(_ pass: PKPaymentPass)
    func canAddPaymentPass(withPrimaryAccountIdentifier primaryAccountIdentifier: String) -> Bool
    func activate(_ paymentPass: PKPaymentPass, withActivationData activationData: Data, completion completion: (@escaping (Bool, Error) -> Swift.Void)? = nil)
    func activate(_ paymentPass: PKPaymentPass, withActivationCode activationCode: String, completion completion: (@escaping (Bool, Error) -> Swift.Void)? = nil)
    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 PKPassLibrary : CVarArg {
}
extension PKPassLibrary : Equatable, Hashable {
    var hashValue: Int { get }
}
CVarArg, Equatable, Hashable

Declaration
From
func addPasses(_ passes: [PKPass], withCompletionHandler completion: ((PKPassLibraryAddPassesStatus) -> Void)?)
To
func addPasses(_ passes: [PKPass], withCompletionHandler completion: (@escaping (PKPassLibraryAddPassesStatus) -> Swift.Void)? = nil)

Declaration
From
func canAddPaymentPassWithPrimaryAccountIdentifier(_ primaryAccountIdentifier: String) -> Bool
To
func canAddPaymentPass(withPrimaryAccountIdentifier primaryAccountIdentifier: String) -> Bool

Declaration
From
func passWithPassTypeIdentifier(_ identifier: String, serialNumber serialNumber: String) -> PKPass?
To
func pass(withPassTypeIdentifier identifier: String, serialNumber serialNumber: String) -> PKPass?

Declaration
From
func passesOfType(_ passType: PKPassType) -> [PKPass]
To
func passes(of passType: PKPassType) -> [PKPass]

Declaration
From
func replacePassWithPass(_ pass: PKPass) -> Bool
To
func replacePass(with pass: PKPass) -> Bool

Declaration
From
enum PKPassLibraryAddPassesStatus : Int {
    case DidAddPasses
    case ShouldReviewPasses
    case DidCancelAddPasses
}
To
enum PKPassLibraryAddPassesStatus : Int {
    case didAddPasses
    case shouldReviewPasses
    case didCancelAddPasses
}

Declaration
From
case DidAddPasses
To
case didAddPasses

Declaration
From
case DidCancelAddPasses
To
case didCancelAddPasses

Declaration
From
case ShouldReviewPasses
To
case shouldReviewPasses

NameDeclaration
FromPKPassLibraryAddedPassesUserInfoKey
let PKPassLibraryAddedPassesUserInfoKey: String
ToaddedPassesUserInfoKey
static let addedPassesUserInfoKey: PKPassLibraryNotificationKey

NameDeclaration
FromPKPassLibraryPassTypeIdentifierUserInfoKey
let PKPassLibraryPassTypeIdentifierUserInfoKey: String
TopassTypeIdentifierUserInfoKey
static let passTypeIdentifierUserInfoKey: PKPassLibraryNotificationKey

NameDeclaration
FromPKPassLibraryRemovedPassInfosUserInfoKey
let PKPassLibraryRemovedPassInfosUserInfoKey: String
ToremovedPassInfosUserInfoKey
static let removedPassInfosUserInfoKey: PKPassLibraryNotificationKey

NameDeclaration
FromPKPassLibraryReplacementPassesUserInfoKey
let PKPassLibraryReplacementPassesUserInfoKey: String
ToreplacementPassesUserInfoKey
static let replacementPassesUserInfoKey: PKPassLibraryNotificationKey

NameDeclaration
FromPKPassLibrarySerialNumberUserInfoKey
let PKPassLibrarySerialNumberUserInfoKey: String
ToserialNumberUserInfoKey
static let serialNumberUserInfoKey: PKPassLibraryNotificationKey

NameDeclaration
FromPKPassLibraryDidChangeNotification
let PKPassLibraryDidChangeNotification: String
ToPKPassLibraryDidChange
static let PKPassLibraryDidChange: PKPassLibraryNotificationName

NameDeclaration
FromPKPassLibraryRemotePaymentPassesDidChangeNotification
let PKPassLibraryRemotePaymentPassesDidChangeNotification: String
ToPKPassLibraryRemotePaymentPassesDidChange
static let PKPassLibraryRemotePaymentPassesDidChange: PKPassLibraryNotificationName

Declaration
From
enum PKPassType : UInt {
    case Barcode
    case Payment
    case Any
}
To
enum PKPassType : UInt {
    case barcode
    case payment
    case any
}

Declaration
From
case Any
To
case any

Declaration
From
case Barcode
To
case barcode

Declaration
From
case Payment
To
case payment

NameDeclarationIntroduction
FromPKPaymentNetworkAmex
let PKPaymentNetworkAmex: String
watchOS 2.0
Toamex
static let amex: PKPaymentNetwork
watchOS 3.0

NameDeclarationIntroduction
FromPKPaymentNetworkChinaUnionPay
let PKPaymentNetworkChinaUnionPay: String
watchOS 2.2
TochinaUnionPay
static let chinaUnionPay: PKPaymentNetwork
watchOS 3.0

NameDeclarationIntroduction
FromPKPaymentNetworkDiscover
let PKPaymentNetworkDiscover: String
watchOS 2.0
Todiscover
static let discover: PKPaymentNetwork
watchOS 3.0

NameDeclarationIntroduction
FromPKPaymentNetworkInterac
let PKPaymentNetworkInterac: String
watchOS 2.2
Tointerac
static let interac: PKPaymentNetwork
watchOS 3.0

NameDeclarationIntroduction
FromPKPaymentNetworkMasterCard
let PKPaymentNetworkMasterCard: String
watchOS 2.0
TomasterCard
static let masterCard: PKPaymentNetwork
watchOS 3.0

NameDeclarationIntroduction
FromPKPaymentNetworkPrivateLabel
let PKPaymentNetworkPrivateLabel: String
watchOS 2.0
ToprivateLabel
static let privateLabel: PKPaymentNetwork
watchOS 3.0

NameDeclarationIntroduction
FromPKPaymentNetworkVisa
let PKPaymentNetworkVisa: String
watchOS 2.0
Tovisa
static let visa: PKPaymentNetwork
watchOS 3.0

Modified PKPaymentPass
Declaration
From
class PKPaymentPass : PKPass {
    var primaryAccountIdentifier: String { get }
    var primaryAccountNumberSuffix: String { get }
    var deviceAccountIdentifier: String { get }
    var deviceAccountNumberSuffix: String { get }
    var activationState: PKPaymentPassActivationState { get }
}
To
class PKPaymentPass : PKPass {
    var primaryAccountIdentifier: String { get }
    var primaryAccountNumberSuffix: String { get }
    weak var deviceAccountIdentifier: NSString? { get }
    weak var deviceAccountNumberSuffix: NSString? { get }
    var activationState: PKPaymentPassActivationState { get }
}

Declaration
From
var deviceAccountIdentifier: String { get }
To
weak var deviceAccountIdentifier: NSString? { get }

Declaration
From
var deviceAccountNumberSuffix: String { get }
To
weak var deviceAccountNumberSuffix: NSString? { get }

Declaration
From
enum PKPaymentPassActivationState : UInt {
    case Activated
    case RequiresActivation
    case Activating
    case Suspended
    case Deactivated
}
To
enum PKPaymentPassActivationState : UInt {
    case activated
    case requiresActivation
    case activating
    case suspended
    case deactivated
}

Declaration
From
case Activated
To
case activated

Declaration
From
case Activating
To
case activating

Declaration
From
case Deactivated
To
case deactivated

Declaration
From
case RequiresActivation
To
case requiresActivation

Declaration
From
case Suspended
To
case suspended