Fill the blank
Fill the blank with the best hint.
Button { cart.add(item) } label: {
Image(systemName: "cart.badge.plus")
}
.accessibilityLabel("Add to cart")
.accessibilityHint(____)Hint 1 of 1
Hints describe what happens.
Choose an answer, then open Show answer below to check it.
Show answer
Answer: A "Adds \(item.name) to your cart."
Correct. A hint describes the result of the action.
Why not the others?
- B
"Double tap to add to cart.". VoiceOver already says how to activate; hints shouldn't describe gestures. - C
"Button". The button trait is announced automatically. - D
"cart.badge.plus". Symbol names mean nothing to users.