-
-
Save sturdysturge/4276d6cfbb190d05bec6ff5e21d8731a to your computer and use it in GitHub Desktop.
RevDoc help
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
import SwiftUI | |
struct ContentView: View { | |
var body: some View { | |
List { | |
//VoiceOver: Label 1, Help 1 | |
Text("Help 1 overrides Hint 1") | |
.accessibility(hint: Text("Hint 1")) | |
.help(Text("Help 1")) | |
.accessibility(label: Text("Label 1")) | |
//VoiceOver: Label 2, Hint 2 | |
Text("Hint 2 overrides Help 2") | |
.help(Text("Help 2")) | |
.accessibility(hint: Text("Hint 2")) | |
.accessibility(label: Text("Label 2")) | |
} | |
.frame(minWidth: 200, minHeight: 200) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment