Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions Sources/Showcase/ProgressViewPlayground.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
// Copyright 2023–2025 Skip
import SwiftUI
#if SKIP
import androidx.compose.foundation.layout.size
import androidx.compose.ui.unit.dp
#endif

struct ProgressViewPlayground: View {
var body: some View {
Expand Down Expand Up @@ -74,6 +78,54 @@ struct ProgressViewPlayground: View {
Text("2/3")
Divider()
}

#if SKIP
Text("Wavy (Material 3 expressive)")
.font(.headline)
.frame(maxWidth: .infinity, alignment: .leading)
HStack {
Text("Indeterminate")
Spacer()
ProgressView()
.material3WavyProgress()
.composeModifier { $0.size(40.dp) }
}
HStack {
Text("Indeterminate linear")
Spacer()
ProgressView()
.progressViewStyle(.linear)
.material3WavyProgress()
}
HStack {
Text("Progress 0.5")
Spacer()
ProgressView(value: 0.5)
.material3WavyProgress()
}
HStack {
Text("Progress 0.5 circular")
Spacer()
ProgressView(value: 0.5)
.progressViewStyle(.circular)
.material3WavyProgress()
.composeModifier { $0.size(40.dp) }
}
HStack {
Text("Custom amplitude / wavelength")
Spacer()
ProgressView()
.progressViewStyle(.linear)
.material3WavyProgress(amplitude: 0.6, wavelength: 24)
}
HStack {
Text(".tint(.red)")
Spacer()
ProgressView(value: 0.4)
.tint(.red)
.material3WavyProgress()
}
#endif
}
.padding()
}
Expand Down
Loading