Skip to content

Instantly share code, notes, and snippets.

@sturdysturge
Created July 21, 2020 17:54
Show Gist options
  • Save sturdysturge/26211bf2d2c2f7f866a9d0fece8b27bf to your computer and use it in GitHub Desktop.
Save sturdysturge/26211bf2d2c2f7f866a9d0fece8b27bf to your computer and use it in GitHub Desktop.
RevDoc InputLabelsView
import SwiftUI
struct InputLabelsView : View {
var body: some View {
Button("My Button") {
print("My Button pressed")
}
.accessibility(label: Text("Label"))
.accessibility(inputLabels: [Text("Input"), Text("Labels")])
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment