Documentation Archive Developer
Search

PassKit Changes

PassKit

Added PKAddressField.Name
Added PKPassLibrary.openPaymentSetup()
Added PKPaymentAuthorizationViewControllerDelegate.paymentAuthorizationViewControllerWillAuthorizePayment(PKPaymentAuthorizationViewController!)
Added PKPaymentButton
Added PKPaymentButton.init(type: PKPaymentButtonType, style: PKPaymentButtonStyle)
Added PKPaymentButtonStyle [enum]
Added PKPaymentButtonStyle.Black
Added PKPaymentButtonStyle.White
Added PKPaymentButtonStyle.WhiteOutline
Added PKPaymentButtonType [enum]
Added PKPaymentButtonType.Buy
Added PKPaymentButtonType.Plain
Added PKPaymentRequest.shippingType
Added PKShippingType [enum]
Added PKShippingType.Delivery
Added PKShippingType.ServicePickup
Added PKShippingType.Shipping
Added PKShippingType.StorePickup
Modified PKAddressField [struct]
Declaration
From
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 }
}
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 Name: PKAddressField { get }
    static var All: PKAddressField { get }
}

Modified PKPassKitErrorDomain
Declaration
From
let PKPassKitErrorDomain: NSString!
To
let PKPassKitErrorDomain: String

Modified PKPassLibraryAddedPassesUserInfoKey
Declaration
From
let PKPassLibraryAddedPassesUserInfoKey: NSString!
To
let PKPassLibraryAddedPassesUserInfoKey: String

Modified PKPassLibraryDidChangeNotification
Declaration
From
let PKPassLibraryDidChangeNotification: NSString!
To
let PKPassLibraryDidChangeNotification: String

Modified PKPassLibraryPassTypeIdentifierUserInfoKey
Declaration
From
let PKPassLibraryPassTypeIdentifierUserInfoKey: NSString!
To
let PKPassLibraryPassTypeIdentifierUserInfoKey: String

Modified PKPassLibraryRemovedPassInfosUserInfoKey
Declaration
From
let PKPassLibraryRemovedPassInfosUserInfoKey: NSString!
To
let PKPassLibraryRemovedPassInfosUserInfoKey: String

Modified PKPassLibraryReplacementPassesUserInfoKey
Declaration
From
let PKPassLibraryReplacementPassesUserInfoKey: NSString!
To
let PKPassLibraryReplacementPassesUserInfoKey: String

Modified PKPassLibrarySerialNumberUserInfoKey
Declaration
From
let PKPassLibrarySerialNumberUserInfoKey: NSString!
To
let PKPassLibrarySerialNumberUserInfoKey: String

Modified PKPaymentNetworkAmex
Declaration
From
let PKPaymentNetworkAmex: NSString!
To
let PKPaymentNetworkAmex: String

Modified PKPaymentNetworkMasterCard
Declaration
From
let PKPaymentNetworkMasterCard: NSString!
To
let PKPaymentNetworkMasterCard: String

Modified PKPaymentNetworkVisa
Declaration
From
let PKPaymentNetworkVisa: NSString!
To
let PKPaymentNetworkVisa: String