Repository navigation
iOS 27 updates. - #34
Merged
Merged
Conversation
Contributor
Author
|
Looks like Apple decided to update the docs last night. There is an additional change:
extension Pass {
public struct Action: Codable, Equatable, Hashable, Sendable {
//...
/// (Required) The action type to perform.
public var type: ActionType
//...
}
}
extension Pass.Action {
/// The action a featured action performs.
public enum ActionType: String, Codable, Equatable, Hashable, CaseIterable, Sendable {
case viewSchedule
case watchTrailer
case listenToMusic
case call
case place
case addToBalance
case order
case shop
case membershipBenefits
case bookAppointment
case bookCar
case bookFlight
case bookStay
case viewOffersRewards
}
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Made some additions in preparation for iOS 27. I should mention that none of these additions come from the official Apple docs. They are taking an unusually long time to update the remaining info. The below changes have been instead taken from the WWDC26 video What's new in Wallet and Apple's new
pass-builderSwift package.Pass.Actiontype. (WWDC26 video evidence,pass-builderevidence)Pass:featuredActions,logoSymbolName,posterGeneric, andstripColor. (pass-builderevidence)PassFieldshas a newfooterFieldsproperty. (WWDC26 video evidence,pass-builderevidence)PassContainerandImageSizecontains the logic for three new image types:artwork,primaryLogo, andsecondaryLogo. (pass-builderevidence for image sizes)Pass+ExtensionsandPassFields+Extensionscontain new helpers for poster generic passes, as well as include relevant properties for the other pass helpers.