通过以下代码段可以获取最大尺寸值:
对于Apple Wallet Passes:
NSNumber *value = [[PKBarcodesSupport allSupportKeywords] objectForKey:PKBarcodeMaxWidthKey];
CGFloat maxWidth = [value floatValue];
对于Google Pay Passes:
PassesBarcodeValue *barcodeValue = [PassesBarcodeValue new];
CGFloat maxWidth = [barcodeValue maxBarWidth];