What am I doing wrong?
I deal with Apple Pay (PassKit) and for my app to work and not crash in iOS 11 inside one of my view controllers that conforms to the PKPaymentAuthorizationViewControllerDelegate
protocol, this delegate callback must be called.
@available(iOS 11.0, *)
func paymentAuthorizationViewController(_ controller: PKPaymentAuthorizationViewController, didAuthorizePayment payment: PKPayment, handler completion: @escaping (PKPaymentAuthorizationResult) -> Void) {
// ...
}
I can't compile this in Xcode 8.3. I am using the @available
attribute, but it complains about PKPaymentAuthorizationResult
being an undeclared type.
Any ideas?