|
|
|
|
@ -271,11 +271,15 @@ struct ProductIdsView: View { |
|
|
|
|
List { |
|
|
|
|
LabeledContent("count", value: String(self.transactions.count)) |
|
|
|
|
ForEach(self.transactions) { transaction in |
|
|
|
|
if let offerType = transaction.offerType?.rawValue { |
|
|
|
|
LabeledContent(transaction.productID, value: "\(offerType)") |
|
|
|
|
if #available(iOS 17.2, *) { |
|
|
|
|
if let offer = transaction.offer { |
|
|
|
|
LabeledContent(transaction.productID, value: "\(offer.type)") |
|
|
|
|
} else { |
|
|
|
|
LabeledContent(transaction.productID, value: "no offer") |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
Text("need ios 17.2") |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}.onAppear { |
|
|
|
|
Task { |
|
|
|
|
|