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 209cb00 commit 63a52f9Copy full SHA for 63a52f9
1 file changed
Demo/App.swiftpm/Sources/StylePlaygrounds.swift
@@ -6,9 +6,20 @@ import SwiftUI
6
7
struct StylePlayground: View {
8
@State private var taps = 0
9
+ @State private var toggle = true
10
+ @State private var slider = 0.5
11
var body: some View {
12
ScrollView {
13
VStack(alignment: .leading, spacing: 0) {
14
+ Example("Inherited tint") {
15
+ VStack(alignment: .leading, spacing: 10) {
16
+ Button("Tinted button") { taps += 1 }
17
+ Toggle("Tinted toggle", isOn: $toggle)
18
+ Slider(value: $slider, in: 0...1)
19
+ ProgressView(value: slider)
20
+ }
21
+ .tint(.pink)
22
23
Example("Inherited font") {
24
VStack(alignment: .leading, spacing: 6) {
25
Text("All three")
0 commit comments