Replies: 1 comment 2 replies
-
Hi @Jianhaos, I think this would be a good addition if you are interested in exploring it! I think we could follow a similar lead to how |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
According to Apple's design guidelines for
Alerts
, the action on the trailing side can/shall be highlighted. Currently, this can be done in vanillaSwiftUI
by applying the.keyboardShortcut(.defaultAction)
modifier to aButton
:which is not supported in swift-navigation yet. Therefore, I propose a new
ButtonStateRole
, something likeprimary
orhighlight
that indicates the preferred action on the trailing side. This is different from thecancel
role because that is placed on the leading side.Beta Was this translation helpful? Give feedback.
All reactions