Skip to content

Updated SemanticTags. - #29

Merged
hiimtmac merged 1 commit into
hiimtmac:mainfrom
mohalibou:main
Sep 18, 2025
Merged

Updated SemanticTags.#29
hiimtmac merged 1 commit into
hiimtmac:mainfrom
mohalibou:main

Conversation

@mohalibou

Copy link
Copy Markdown
Contributor

Apple made some changes in the SemanticTags object again.

  • Replaced the AirportSecurityProgram with the TransitSecurityProgram enum.

    public enum TransitSecurityProgram: String, Codable, Equatable, Hashable, CaseIterable, Sendable {
        case tsaPreCheck = "PKTransitSecurityProgramTSAPreCheck"
        case tsaPreCheckTouchlessID = "PKTransitSecurityProgramTSAPreCheckTouchlessID"
        case oss = "PKTransitSecurityProgramOSS"
        case iti = "PKTransitSecurityProgramITI"
        case itd = "PKTransitSecurityProgramITD"
        case globalEntry = "PKTransitSecurityProgramGlobalEntry"
        case clear = "PKTransitSecurityProgramCLEAR"
    }
  • Added a new PassengerCapability enum.

    public enum PassengerCapability: String, Codable, Equatable, Hashable, CaseIterable, Sendable {
        case preboarding = "PKPassengerCapabilityPreboarding"
        case priorityBoarding = "PKPassengerCapabilityPriorityBoarding"
        case carryon = "PKPassengerCapabilityCarryon"
        case personalItem = "PKPassengerCapabilityPersonalItem"
    }
  • Renamed airport-related fields to location-related fields.

    public var departureLocationSecurityPrograms: [TransitSecurityProgram]?
    public var destinationLocationSecurityPrograms: [TransitSecurityProgram]?
    public var departureLocationTimeZone: String?
    public var destinationLocationTimeZone: String?
  • Replaced airlinePassengerCapabilities property with passengerCapabilities and passengerEligibleSecurityPrograms.

    public var passengerCapabilities: [PassengerCapability]?
    public var passengerEligibleSecurityPrograms: [TransitSecurityProgram]?
  • Replaced airlineLoungePlaceID property with loungePlaceIDs.

    public var loungePlaceIDs: [String]?
  • Added a new membershipProgramStatus property.

    public var membershipProgramStatus: String?
  • Fixed tailgatingAllowed property name typo.

    public var tailgatingAllowed: Bool?

@hiimtmac

hiimtmac commented Sep 18, 2025

Copy link
Copy Markdown
Owner

Ok this is super weird. Opening https://developer.apple.com/documentation/walletpasses/semantictags in Xcode (26 at least) has different documentation than online... how can we know which is the more up to date one..?

image

@hiimtmac

hiimtmac commented Sep 18, 2025

Copy link
Copy Markdown
Owner

Happy to merge if we can confirm the web one (which is what your changes seem to follow) are the correct docs!

Ok based on this thread alexandercerutti/passkit-generator#249 (which it looks like you are in!) lets go ahead with your changes

@hiimtmac
hiimtmac merged commit 040b3a4 into hiimtmac:main Sep 18, 2025
1 check passed
@mohalibou

Copy link
Copy Markdown
Contributor Author

Yup, I learned from that thread about the new changes to SemanticTags.

I have a high degree of confidence that the web documentation is more accurate, since it did previously contain properties like the old "airline" ones. Maybe they just forgot to update the documentation on Xcode as well?

In any case, appreciate the approval!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants