Documentation Archive Developer
Search

PassKit Changes

PassKit

Removed PKAddressField.value
Removed PKMerchantCapability.value
Added PKAddressField.init(rawValue: UInt)
Added PKMerchantCapability.init(rawValue: UInt)
Modified PKAddPassesViewController
Introduction
FromiOS 8.0
ToiOS 6.0

Modified PKAddPassesViewController.init(pass: AnyObject!)
Declaration
From
init(pass pass: AnyObject!)
To
init!(pass pass: AnyObject!)

Modified PKAddPassesViewController.init(passes: [AnyObject]!)
DeclarationIntroduction
From
init(passes passes: [AnyObject]!)
iOS 8.0
To
init!(passes passes: [AnyObject]!)
iOS 7.0

Modified PKAddressField [struct]
Declaration
From
struct PKAddressField : RawOptionSetType {
    init(_ value: UInt)
    var value: UInt
    static var None: PKAddressField { get }
    static var PostalAddress: PKAddressField { get }
    static var Phone: PKAddressField { get }
    static var Email: PKAddressField { get }
    static var All: PKAddressField { get }
}
To
struct PKAddressField : RawOptionSetType {
    init(_ rawValue: UInt)
    init(rawValue rawValue: UInt)
    static var None: PKAddressField { get }
    static var PostalAddress: PKAddressField { get }
    static var Phone: PKAddressField { get }
    static var Email: PKAddressField { get }
    static var All: PKAddressField { get }
}

Modified PKAddressField.init(_: UInt)
Declaration
From
init(_ value: UInt)
To
init(_ rawValue: UInt)

Modified PKMerchantCapability [struct]
Declaration
From
struct PKMerchantCapability : RawOptionSetType {
    init(_ value: UInt)
    var value: UInt
    static var Capability3DS: PKMerchantCapability { get }
    static var CapabilityEMV: PKMerchantCapability { get }
}
To
struct PKMerchantCapability : RawOptionSetType {
    init(_ rawValue: UInt)
    init(rawValue rawValue: UInt)
    static var Capability3DS: PKMerchantCapability { get }
    static var CapabilityEMV: PKMerchantCapability { get }
}

Modified PKMerchantCapability.init(_: UInt)
Declaration
From
init(_ value: UInt)
To
init(_ rawValue: UInt)

Modified PKPass.init(data: NSData!, error: NSErrorPointer)
Declaration
From
init(data data: NSData!, error error: NSErrorPointer)
To
init!(data data: NSData!, error error: NSErrorPointer)

Modified PKPass.userInfo
Introduction
FromiOS 8.0
ToiOS 7.0

Modified PKPassKitErrorCode [enum]
Introduction
FromiOS 8.0
ToiOS 6.0

Modified PKPassLibrary
Introduction
FromiOS 8.0
ToiOS 6.0

Modified PKPassLibrary.addPasses([AnyObject]!, withCompletionHandler:((PKPassLibraryAddPassesStatus) -> Void)!)
Introduction
FromiOS 8.0
ToiOS 7.0

Modified PKPassLibraryAddPassesStatus [enum]
Introduction
FromiOS 8.0
ToiOS 7.0

Modified PKPaymentAuthorizationViewController.init(paymentRequest: PKPaymentRequest!)
Declaration
From
init(paymentRequest request: PKPaymentRequest!)
To
init!(paymentRequest request: PKPaymentRequest!)

Modified PKPaymentSummaryItem.init(label: String!, amount: NSDecimalNumber!)
Declaration
From
convenience init(label label: String!, amount amount: NSDecimalNumber!)
To
convenience init!(label label: String!, amount amount: NSDecimalNumber!)

Modified PKPassKitErrorDomain
Introduction
FromiOS 8.0
ToiOS 6.0

Modified PKPassLibraryAddedPassesUserInfoKey
Introduction
FromiOS 8.0
ToiOS 6.0

Modified PKPassLibraryDidChangeNotification
Introduction
FromiOS 8.0
ToiOS 6.0

Modified PKPassLibraryPassTypeIdentifierUserInfoKey
Introduction
FromiOS 8.0
ToiOS 6.0

Modified PKPassLibraryRemovedPassInfosUserInfoKey
Introduction
FromiOS 8.0
ToiOS 6.0

Modified PKPassLibraryReplacementPassesUserInfoKey
Introduction
FromiOS 8.0
ToiOS 6.0

Modified PKPassLibrarySerialNumberUserInfoKey
Introduction
FromiOS 8.0
ToiOS 6.0