We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc186b5 commit 23aaf2dCopy full SHA for 23aaf2d
1 file changed
Demo/App.swiftpm/Sources/StylePlaygrounds.swift
@@ -8,6 +8,7 @@ struct StylePlayground: View {
8
@State private var taps = 0
9
@State private var toggle = true
10
@State private var slider = 0.5
11
+ @State private var name = ""
12
var body: some View {
13
ScrollView {
14
VStack(alignment: .leading, spacing: 0) {
@@ -52,9 +53,11 @@ struct StylePlayground: View {
52
53
}
54
Example("Inherited disabled") {
55
VStack(alignment: .leading, spacing: 8) {
- Text("Both buttons are disabled (taps: \(taps))")
56
- Button("First") { taps += 1 }
57
- Button("Second") { taps += 1 }
+ Text("Every control below is disabled (taps: \(taps))")
+ Button("Button") { taps += 1 }
58
+ Toggle("Toggle", isOn: $toggle)
59
+ Slider(value: $slider, in: 0...1)
60
+ TextField("TextField", text: $name)
61
62
.disabled(true)
63
0 commit comments