-
Notifications
You must be signed in to change notification settings - Fork 515
PassKit watchOS xcode14.0 beta2
TJ Lambert edited this page Aug 3, 2022
·
3 revisions
#PassKit.framework https://github.com/xamarin/xamarin-macios/pull/15613
diff -ruN /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKConstants.h /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKConstants.h
--- /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKConstants.h 2022-05-31 15:03:19.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKConstants.h 2022-06-17 14:28:06.000000000 -0400
@@ -17,6 +17,8 @@
typedef NSString * PKPaymentNetwork NS_EXTENSIBLE_STRING_ENUM;
extern PKPaymentNetwork const PKPaymentNetworkAmex API_AVAILABLE(macos(11.0), ios(8.0), watchos(3.0));
+extern PKPaymentNetwork const PKPaymentNetworkBancomat API_AVAILABLE(macos(12.0), ios(16.0), watchos(9.0));
+extern PKPaymentNetwork const PKPaymentNetworkBancontact API_AVAILABLE(macos(12.0), ios(16.0), watchos(9.0));
extern PKPaymentNetwork const PKPaymentNetworkCarteBancaire API_DEPRECATED("Use PKPaymentNetworkCartesBancaires instead.", macos(10.13, 11.0), ios(10.3, 11.0), watchos(3.2, 4.0));
extern PKPaymentNetwork const PKPaymentNetworkCarteBancaires API_DEPRECATED("Use PKPaymentNetworkCartesBancaires instead.", macos(10.13, 11.0), ios(11.0, 11.2), watchos(4.0, 4.2));
extern PKPaymentNetwork const PKPaymentNetworkCartesBancaires API_AVAILABLE(macos(11.0), ios(11.2), watchos(4.2));
diff -ruN /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityAuthorizationController.h /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityAuthorizationController.h
--- /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityAuthorizationController.h 2022-05-31 15:03:20.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityAuthorizationController.h 2022-06-17 14:29:27.000000000 -0400
@@ -8,12 +8,10 @@
#import <Foundation/Foundation.h>
-#import <PassKit/PKIdentityDocumentDescriptor.h>
-#import <PassKit/PKIdentityRequest.h>
-#import <PassKit/PKIdentityDocument.h>
-#ifndef PKIdentityAuthorizationController_h
-#define PKIdentityAuthorizationController_h
+@class PKIdentityDocument;
+@class PKIdentityRequest;
+@protocol PKIdentityDocumentDescriptor;
NS_ASSUME_NONNULL_BEGIN
@@ -21,8 +19,6 @@
API_AVAILABLE(ios(16.0)) API_UNAVAILABLE(macos, watchos, tvos)
@interface PKIdentityAuthorizationController: NSObject
-- (instancetype)init;
-
/// Determines if a document can be requested, taking into account the entitlement of the
/// calling process as well as the state of this device.
- (void)checkCanRequestDocument:(id<PKIdentityDocumentDescriptor>)descriptor
@@ -38,7 +34,7 @@
/// Only one request can be in progress at a time, otherwise PKIdentityErrorRequestAlreadyInProgress
/// will be returned.
- (void)requestDocument:(PKIdentityRequest *)request
- completion:(void(^)(PKIdentityDocument * _Nullable document, NSError * _Nullable error))completion;
+ completion:(void(^)(PKIdentityDocument * _Nullable document, NSError * _Nullable error))completion;
/// If there is a request in progress through requestDocument, this will cancel that request
/// if possible. If the request is cancelled, PKIdentityErrorAppCancelled will be returned in the
@@ -50,7 +46,6 @@
@end
NS_ASSUME_NONNULL_END
-#endif /* PKIdentityAuthorizationController_h */
#else
diff -ruN /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityDocument.h /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityDocument.h
--- /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityDocument.h 2022-05-31 15:03:20.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityDocument.h 2022-06-17 14:29:27.000000000 -0400
@@ -9,29 +9,34 @@
#import <Foundation/Foundation.h>
-#ifndef PKIdentityDocument_h
-#define PKIdentityDocument_h
+@class PKIdentityDocumentRawElements;
NS_ASSUME_NONNULL_BEGIN
/// Represents the response of a request for an identity document.
-API_AVAILABLE(ios(16.0)) API_UNAVAILABLE(macos, watchos, tvos)
+API_AVAILABLE(ios(16.0)) API_UNAVAILABLE(macos, watchos, tvos)
@interface PKIdentityDocument: NSObject
-- (instancetype)init NS_UNAVAILABLE;
-
/// An encrypted data blob containing the requested document information and associated metadata.
/// This is encrypted to the public key on-file with the Developer portal for the calling app, and should
/// be passed to the server holding the corresponding private key for decryption.
/// This data is not intended to be read on-device.
-@property (readonly, strong) NSData *encryptedData;
+@property (nonatomic, readonly) NSData *encryptedData;
+
+/// The unsigned, unencrypted representation of the elements in the response, as specified by the issuer.
+/// When element values are returned, they match the corresponding element values within encryptedData, but
+/// do not possess an issuer signature. They can be used locally for use cases that do not require the
+/// authenticity guarantees provided by the issuer signature, but should never be used in situations that
+/// require trusted information.
+@property (nonatomic, readonly, nullable) PKIdentityDocumentRawElements *rawElements;
+
+- (instancetype)init NS_UNAVAILABLE;
++ (instancetype)new NS_UNAVAILABLE;
@end
NS_ASSUME_NONNULL_END
-#endif /* PKIdentityDocument_h */
-
#else
#import <PassKitCore/PKIdentityDocument.h>
diff -ruN /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityDocumentAgeThreshold.h /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityDocumentAgeThreshold.h
--- /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityDocumentAgeThreshold.h 1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityDocumentAgeThreshold.h 2022-06-17 14:29:28.000000000 -0400
@@ -0,0 +1,37 @@
+#if !__has_include(<PassKitCore/PKIdentityDocumentAgeThreshold.h>) || PK_USE_PUBLIC_PASSKIT
+//
+// PKIdentityDocumentAgeThreshold.h
+// PassKit
+//
+// Copyright © 2022 Apple, Inc. All rights reserved.
+//
+
+
+#import <Foundation/Foundation.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+/// Represents an age threshold in a PKIdentityDocument, which
+/// indicates whether the document holder's age is at least
+/// a certain age threshold in years.
+API_AVAILABLE(ios(16.0)) API_UNAVAILABLE(macos, watchos, tvos)
+NS_SWIFT_NAME(PKIdentityDocument.AgeThreshold)
+@interface PKIdentityDocumentAgeThreshold: NSObject
+
+/// The age threshold in years requested in the originating request.
+@property (nonatomic, readonly) NSInteger years;
+
+/// True if the document holder's age is >= years, false otherwise.
+@property (nonatomic, readonly, getter=isAtLeastYearsOld) BOOL atLeastYearsOld;
+
+- (instancetype)init NS_UNAVAILABLE;
++ (instancetype)new NS_UNAVAILABLE;
+
+@end
+
+NS_ASSUME_NONNULL_END
+
+
+#else
+#import <PassKitCore/PKIdentityDocumentAgeThreshold.h>
+#endif
diff -ruN /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityDocumentDescriptor.h /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityDocumentDescriptor.h
--- /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityDocumentDescriptor.h 2022-05-31 15:03:20.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityDocumentDescriptor.h 2022-06-17 14:29:27.000000000 -0400
@@ -7,11 +7,10 @@
//
-#import <PassKit/PKIdentityElement.h>
-#import <PassKit/PKIdentityIntentToStore.h>
+#import <Foundation/Foundation.h>
-#ifndef PKIdentityDocumentDescriptor_h
-#define PKIdentityDocumentDescriptor_h
+@class PKIdentityElement;
+@class PKIdentityIntentToStore;
NS_ASSUME_NONNULL_BEGIN
@@ -22,10 +21,10 @@
@protocol PKIdentityDocumentDescriptor <NSObject>
/// Set of elements that will be requested from the document.
-@property (readonly) NSArray<PKIdentityElement *> *elements;
+@property (nonatomic, readonly) NSArray<PKIdentityElement *> *elements;
/// Intent to store for the given element, or nil if the element has not been added to this descriptor.
-- (PKIdentityIntentToStore * _Nullable)intentToStoreForElement:(PKIdentityElement *)element NS_SWIFT_NAME(intentToStore(element:));
+- (nullable PKIdentityIntentToStore *)intentToStoreForElement:(PKIdentityElement *)element NS_SWIFT_NAME(intentToStore(element:));
/// Adds the set of elements and associates them with the intent to store. This method can be
/// called multple times with the same intent to store to append additional elements. If the same
@@ -42,8 +41,6 @@
NS_ASSUME_NONNULL_END
-#endif /* PKIdentityDocumentDescriptor_h */
-
#else
#import <PassKitCore/PKIdentityDocumentDescriptor.h>
diff -ruN /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityDocumentIssuingAuthority.h /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityDocumentIssuingAuthority.h
--- /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityDocumentIssuingAuthority.h 1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityDocumentIssuingAuthority.h 2022-06-17 14:29:27.000000000 -0400
@@ -0,0 +1,38 @@
+#if !__has_include(<PassKitCore/PKIdentityDocumentIssuingAuthority.h>) || PK_USE_PUBLIC_PASSKIT
+//
+// PKIdentityDocumentIssuingAuthority.h
+// PassKit
+//
+// Copyright © 2022 Apple, Inc. All rights reserved.
+//
+
+
+#import <Foundation/Foundation.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+/// Represents a document's issuing authority in a PKIdentityDocument.
+API_AVAILABLE(ios(16.0)) API_UNAVAILABLE(macos, watchos, tvos)
+NS_SWIFT_NAME(PKIdentityDocument.IssuingAuthority)
+@interface PKIdentityDocumentIssuingAuthority: NSObject
+
+/// The name of the issuing authority of the document.
+@property (nonatomic, readonly, nullable, copy) NSString *name;
+
+/// The country subdivision code of the jurisdiction that issued the document.
+@property (nonatomic, readonly, nullable, copy) NSString *jurisdiction;
+
+/// The ISO 3166-1 alpha-2 country code of the country that issued the document.
+@property (nonatomic, readonly, nullable, copy) NSString *ISOCountryCode;
+
+- (instancetype)init NS_UNAVAILABLE;
++ (instancetype)new NS_UNAVAILABLE;
+
+@end
+
+NS_ASSUME_NONNULL_END
+
+
+#else
+#import <PassKitCore/PKIdentityDocumentIssuingAuthority.h>
+#endif
diff -ruN /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityDocumentRawElements.h /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityDocumentRawElements.h
--- /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityDocumentRawElements.h 1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityDocumentRawElements.h 2022-06-17 14:29:28.000000000 -0400
@@ -0,0 +1,62 @@
+#if !__has_include(<PassKitCore/PKIdentityDocumentRawElements.h>) || PK_USE_PUBLIC_PASSKIT
+//
+// PKIdentityDocumentRawElements.h
+// PassKit
+//
+// Copyright © 2022 Apple, Inc. All rights reserved.
+//
+
+
+#import <Foundation/Foundation.h>
+
+@class CNPostalAddress;
+@class PKIdentityDocumentIssuingAuthority;
+@class PKIdentityDocumentAgeThreshold;
+
+NS_ASSUME_NONNULL_BEGIN
+
+/// Represents the response elements in a PKIdentityDocument.
+/// Only properties that correspond to elements that were requested and
+/// are present in the underlying identity document will be set.
+API_AVAILABLE(ios(16.0)) API_UNAVAILABLE(macos, watchos, tvos)
+NS_SWIFT_NAME(PKIdentityDocument.RawElements)
+@interface PKIdentityDocumentRawElements: NSObject
+
+/// The name of the document holder.
+@property (nonatomic, readonly, nullable, copy) NSPersonNameComponents *name;
+
+/// The address of the document holder.
+@property (nonatomic, readonly, nullable, copy) CNPostalAddress *address;
+
+/// The issuing authority that issued the document.
+@property (nonatomic, readonly, nullable, copy) PKIdentityDocumentIssuingAuthority *issuingAuthority;
+
+/// The expiration date of the document.
+@property (nonatomic, readonly, nullable, copy) NSDateComponents *documentExpirationDate;
+
+/// The number identifying the document, as specified by its issuing authority.
+@property (nonatomic, readonly, nullable, copy) NSString *documentNumber;
+
+/// The age (in years) of the document holder.
+@property (nonatomic, readonly, nullable, copy) NSNumber *age NS_REFINED_FOR_SWIFT;
+
+/// An age threshold indicating whether the document holder is at least a requested age.
+@property (nonatomic, readonly, nullable, copy) PKIdentityDocumentAgeThreshold *ageThreshold;
+
+/// The date of birth of the document holder.
+@property (nonatomic, readonly, nullable, copy) NSDateComponents *dateOfBirth;
+
+/// The portrait of the document holder.
+@property (nonatomic, readonly, nullable, copy) NSData *portraitImageData;
+
+- (instancetype)init NS_UNAVAILABLE;
++ (instancetype)new NS_UNAVAILABLE;
+
+@end
+
+NS_ASSUME_NONNULL_END
+
+
+#else
+#import <PassKitCore/PKIdentityDocumentRawElements.h>
+#endif
diff -ruN /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityElement.h /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityElement.h
--- /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityElement.h 2022-05-31 15:03:22.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityElement.h 2022-06-17 14:29:29.000000000 -0400
@@ -7,9 +7,6 @@
//
-#ifndef PKIdentityElement_h
-#define PKIdentityElement_h
-
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@@ -22,35 +19,35 @@
@interface PKIdentityElement: NSObject <NSCopying>
/// The user's given name or first name.
-@property (class, readonly) PKIdentityElement *givenNameElement;
+@property (class, nonatomic, readonly) PKIdentityElement *givenNameElement;
/// The user's family name or last name.
-@property (class, readonly) PKIdentityElement *familyNameElement;
+@property (class, nonatomic, readonly) PKIdentityElement *familyNameElement;
/// The portrait of the user on record with the issuer.
-@property (class, readonly) PKIdentityElement *portraitElement;
+@property (class, nonatomic, readonly) PKIdentityElement *portraitElement;
/// The address on record with the issuer.
-@property (class, readonly) PKIdentityElement *addressElement;
+@property (class, nonatomic, readonly) PKIdentityElement *addressElement;
/// The state or government that issued the identity document.
-@property (class, readonly) PKIdentityElement *issuingAuthorityElement;
+@property (class, nonatomic, readonly) PKIdentityElement *issuingAuthorityElement;
/// The document's expiration date. This is usually the expiration date of the corresponding physical
/// document, if applicable.
-@property (class, readonly) PKIdentityElement *documentExpirationDateElement;
+@property (class, nonatomic, readonly) PKIdentityElement *documentExpirationDateElement;
/// The doument's number, as defined by the document's issuing authority.
-@property (class, readonly) PKIdentityElement *documentNumberElement;
+@property (class, nonatomic, readonly) PKIdentityElement *documentNumberElement;
/// The user's driving privileges.
-@property (class, readonly) PKIdentityElement *drivingPrivilegesElement;
+@property (class, nonatomic, readonly) PKIdentityElement *drivingPrivilegesElement;
/// The user's age in years.
-@property (class, readonly) PKIdentityElement *ageElement;
+@property (class, nonatomic, readonly) PKIdentityElement *ageElement;
/// The user's date of birth.
-@property (class, readonly) PKIdentityElement *dateOfBirthElement;
+@property (class, nonatomic, readonly) PKIdentityElement *dateOfBirthElement;
/// Boolean indicating whether the user's age is at least the given age.
/// For example, ageThresholdElementWithAge:21 will return true if the user is at least 21 years old.
@@ -59,13 +56,12 @@
+ (instancetype)ageThresholdElementWithAge:(NSInteger)age NS_SWIFT_NAME(age(atLeast:));
- (instancetype)init NS_UNAVAILABLE;
++ (instancetype)new NS_UNAVAILABLE;
@end
NS_ASSUME_NONNULL_END
-#endif /* PKIdentityElement_h */
-
#else
#import <PassKitCore/PKIdentityElement.h>
diff -ruN /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityError.h /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityError.h
--- /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityError.h 2022-05-31 15:03:21.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityError.h 2022-06-17 14:29:28.000000000 -0400
@@ -9,30 +9,27 @@
#import <Foundation/Foundation.h>
-#ifndef PKIdentityError_h
-#define PKIdentityError_h
-
NS_ASSUME_NONNULL_BEGIN
-/// Error domain for identity errors
+/// Error domain for identity errors.
extern NSErrorDomain const PKIdentityErrorDomain API_AVAILABLE(ios(16.0)) API_UNAVAILABLE(macos, watchos, tvos);
-/// Identity error codes
+/// Identity error codes.
typedef NS_ERROR_ENUM(PKIdentityErrorDomain, PKIdentityError) {
- /// Catch-all for all errors without a specific error code
+ /// Catch-all for all errors without a specific error code.
PKIdentityErrorUnknown = 1,
- /// Returned if the app is not entitled to call an API
+ /// Returned if the app is not entitled to call an API.
PKIdentityErrorNotEntitled = 2,
- /// Returned if the sheet was cancelled
+ /// Returned if the sheet was cancelled.
PKIdentityErrorCancelled = 3,
/// Returned if a request cannot be processed because
- /// the network is not available
+ /// the network is not available.
PKIdentityErrorNetworkUnavailable = 4,
- /// Returned if no supported elements were requested
+ /// Returned if no supported elements were requested.
PKIdentityErrorNoElementsRequested = 5,
/// Returned if a request is made but another request is already
@@ -42,17 +39,18 @@
/// Returned if the caller-supplied nonce is too large or otherwise unsuitable.
PKIdentityErrorInvalidNonce = 7,
- /// Returned if an element requested by the caller is invalid
+ /// Returned if an element requested by the caller is invalid.
PKIdentityErrorInvalidElement = 8,
/// Returned if the merchant ID used in a request is invalid
- PKIdentityErrorInvalidMerchantID = 9
+ PKIdentityErrorInvalidMerchantID = 9,
+
+ /// Returned if the request originates from an unsupported device
+ PKIdentityErrorNotSupported = 10
} API_AVAILABLE(ios(16.0)) API_UNAVAILABLE(macos, watchos, tvos);
NS_ASSUME_NONNULL_END
-#endif /* PKIdentityError_h */
-
#else
#import <PassKitCore/PKIdentityError.h>
diff -ruN /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityIntentToStore.h /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityIntentToStore.h
--- /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityIntentToStore.h 2022-05-31 15:03:20.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityIntentToStore.h 2022-06-17 14:29:27.000000000 -0400
@@ -9,9 +9,6 @@
#import <Foundation/Foundation.h>
-#ifndef PKIdentityIntentToStore_h
-#define PKIdentityIntentToStore_h
-
NS_ASSUME_NONNULL_BEGIN
/// Indicates your intention to store an identity element. This covers not only
@@ -20,24 +17,23 @@
API_AVAILABLE(ios(16.0)) API_UNAVAILABLE(macos, watchos, tvos)
@interface PKIdentityIntentToStore: NSObject <NSCopying>
-- (instancetype)init NS_UNAVAILABLE;
-
/// Indicates the data element returned in the response will not be stored for
/// a period longer than necessary to process the result in realtime.
-@property (class, readonly) PKIdentityIntentToStore *willNotStoreIntent NS_SWIFT_NAME(willNotStore);
+@property (class, nonatomic, readonly) PKIdentityIntentToStore *willNotStoreIntent NS_SWIFT_NAME(willNotStore);
/// Indicates the data element may be stored for an indefinite length of time.
-@property (class, readonly) PKIdentityIntentToStore *mayStoreIntent NS_SWIFT_NAME(mayStore);
+@property (class, nonatomic, readonly) PKIdentityIntentToStore *mayStoreIntent NS_SWIFT_NAME(mayStore);
/// Indicates the data element may be stored for no longer than than the provided number of days.
+ (instancetype)mayStoreIntentForDays:(NSInteger)days NS_SWIFT_NAME(mayStore(days:));
+- (instancetype)init NS_UNAVAILABLE;
++ (instancetype)new NS_UNAVAILABLE;
+
@end
NS_ASSUME_NONNULL_END
-#endif /* PKIdentityIntentToStore_h */
-
#else
#import <PassKitCore/PKIdentityIntentToStore.h>
diff -ruN /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityRequest.h /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityRequest.h
--- /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityRequest.h 2022-05-31 15:03:22.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityRequest.h 2022-06-17 14:29:28.000000000 -0400
@@ -10,9 +10,6 @@
#import <Foundation/Foundation.h>
#import <PassKit/PKIdentityDocumentDescriptor.h>
-#ifndef PKIdentityRequest_h
-#define PKIdentityRequest_h
-
NS_ASSUME_NONNULL_BEGIN
/// Request for information from an identity document stored as a Wallet pass.
@@ -20,24 +17,22 @@
@interface PKIdentityRequest: NSObject
/// A descriptor describing the identity document to request.
-@property (readwrite, strong, nullable) id<PKIdentityDocumentDescriptor> descriptor;
+@property (nonatomic, nullable) id<PKIdentityDocumentDescriptor> descriptor;
/// A caller-specified nonce that will be included in the signed response payload.
/// This is treated as opaque by the PKIdentityAuthorizationController, and has a
/// maximum allowed size of 64 bytes.
-@property (readwrite, copy, nullable) NSData *nonce;
+@property (nonatomic, nullable, copy) NSData *nonce;
/// Identifies the merchant making the request, as previously agreed with Apple.
/// This must match one of the merchant identifiers in the application's entitlement.
/// This property must be set when requestDocument is invoked.
-@property (readwrite, copy, nullable) NSString *merchantIdentifier;
+@property (nonatomic, nullable, copy) NSString *merchantIdentifier;
@end
NS_ASSUME_NONNULL_END
-#endif /* PKIdentityRequest_h */
-
#else
#import <PassKitCore/PKIdentityRequest.h>
diff -ruN /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PassKit.h /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PassKit.h
--- /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PassKit.h 2022-05-25 22:05:28.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PassKit.h 2022-06-17 02:26:12.000000000 -0400
@@ -149,9 +149,18 @@
#if __has_include(<PassKit/PKIdentityDocument.h>)
#import <PassKit/PKIdentityDocument.h>
#endif
+#if __has_include(<PassKit/PKIdentityDocumentAgeThreshold.h>)
+#import <PassKit/PKIdentityDocumentAgeThreshold.h>
+#endif
#if __has_include(<PassKit/PKIdentityDocumentDescriptor.h>)
#import <PassKit/PKIdentityDocumentDescriptor.h>
#endif
+#if __has_include(<PassKit/PKIdentityDocumentIssuingAuthority.h>)
+#import <PassKit/PKIdentityDocumentIssuingAuthority.h>
+#endif
+#if __has_include(<PassKit/PKIdentityDocumentRawElements.h>)
+#import <PassKit/PKIdentityDocumentRawElements.h>
+#endif
#if __has_include(<PassKit/PKIdentityElement.h>)
#import <PassKit/PKIdentityElement.h>
#endif
- README
- xcode13.0 Binding Status
- xcode13.1 Binding Status
- xcode13.2 Binding Status
- xcode13.3 Binding Status
- xcode13.4 Binding Status
- xcode14.0 Binding Status
- xcode14.1 Binding Status
- xcode14.2 Binding Status
- xcode14.3 Binding Status
- xcode15.0 Binding Status
- xcode15.1 Binding Status
- xcode15.3 Binding Status
- xcode15.4 Binding Status
- xcode16.0 Binding Status
- xcode16.1 Binding Status
- xcode16.2 Binding Status