@@ -3,7 +3,7 @@ public enum PassJSON {
3
3
/// A protocol that defines the structure of a `pass.json` file.
4
4
///
5
5
/// > Tip: See the [`Pass`](https://developer.apple.com/documentation/walletpasses/pass) object to understand the keys.
6
- public protocol Properties : Codable {
6
+ public protocol Properties : Codable , Sendable {
7
7
/// A short description that iOS accessibility technologies use for a pass.
8
8
var description : String { get }
9
9
@@ -34,7 +34,7 @@ extension PassJSON {
34
34
/// A protocol that represents the information to display in a field on a pass.
35
35
///
36
36
/// > Tip: See the [`PassFieldContent`](https://developer.apple.com/documentation/walletpasses/passfieldcontent) object to understand the keys.
37
- public protocol PassFieldContent : Codable {
37
+ public protocol PassFieldContent : Codable , Sendable {
38
38
/// A unique key that identifies a field in the pass; for example, `departure-gate`.
39
39
var key : String { get }
40
40
@@ -49,7 +49,7 @@ extension PassJSON {
49
49
/// A protocol that represents the groups of fields that display the information for a boarding pass.
50
50
///
51
51
/// > Tip: See the [`Pass.BoardingPass`](https://developer.apple.com/documentation/walletpasses/pass/boardingpass) object to understand the keys.
52
- public protocol BoardingPass : Codable {
52
+ public protocol BoardingPass : Codable , Sendable {
53
53
/// The type of transit for a boarding pass.
54
54
///
55
55
/// This key is invalid for other types of passes.
@@ -64,7 +64,7 @@ extension PassJSON {
64
64
/// A protocol that represents a barcode on a pass.
65
65
///
66
66
/// > Tip: See the [`Pass.Barcodes`](https://developer.apple.com/documentation/walletpasses/pass/barcodes) object to understand the keys.
67
- public protocol Barcodes : Codable {
67
+ public protocol Barcodes : Codable , Sendable {
68
68
/// The format of the barcode.
69
69
///
70
70
/// The barcode format `PKBarcodeFormatCode128` isn’t supported for watchOS.
@@ -83,7 +83,7 @@ extension PassJSON {
83
83
/// A protocol that represents a location that the system uses to show a relevant pass.
84
84
///
85
85
/// > Tip: See the [`Pass.Locations`](https://developer.apple.com/documentation/walletpasses/pass/locations) object to understand the keys.
86
- public protocol Locations : Codable {
86
+ public protocol Locations : Codable , Sendable {
87
87
/// The latitude, in degrees, of the location.
88
88
var latitude : Double { get }
89
89
@@ -96,7 +96,7 @@ extension PassJSON {
96
96
/// An object that represents the near-field communication (NFC) payload the device passes to an Apple Pay terminal.
97
97
///
98
98
/// > Tip: See the [`Pass.NFC`](https://developer.apple.com/documentation/walletpasses/pass/nfc) object to understand the keys.
99
- public protocol NFC : Codable {
99
+ public protocol NFC : Codable , Sendable {
100
100
/// The payload the device transmits to the Apple Pay terminal.
101
101
///
102
102
/// The size must be no more than 64 bytes.
@@ -112,13 +112,13 @@ extension PassJSON {
112
112
113
113
extension PassJSON {
114
114
/// The version of the file format.
115
- public enum FormatVersion : Int , Codable {
115
+ public enum FormatVersion : Int , Codable , Sendable {
116
116
/// The value must be `1`.
117
117
case v1 = 1
118
118
}
119
119
120
120
/// The type of transit for a boarding pass.
121
- public enum TransitType : String , Codable {
121
+ public enum TransitType : String , Codable , Sendable {
122
122
case air = " PKTransitTypeAir "
123
123
case boat = " PKTransitTypeBoat "
124
124
case bus = " PKTransitTypeBus "
@@ -127,7 +127,7 @@ extension PassJSON {
127
127
}
128
128
129
129
/// The format of the barcode.
130
- public enum BarcodeFormat : String , Codable {
130
+ public enum BarcodeFormat : String , Codable , Sendable {
131
131
case pdf417 = " PKBarcodeFormatPDF417 "
132
132
case qr = " PKBarcodeFormatQR "
133
133
case aztec = " PKBarcodeFormatAztec "
0 commit comments