There was an error while loading. Please reload this page.
1 parent 2ab91c9 commit fd3d1dfCopy full SHA for fd3d1df
1 file changed
Demo/App.swiftpm/Sources/ControlPlaygrounds.swift
@@ -193,6 +193,22 @@ struct ProgressViewPlayground: View {
193
Button("Advance") { progress = progress >= 1 ? 0 : progress + 0.25 }
194
}
195
196
+ Example("With a label") {
197
+ VStack(alignment: .leading, spacing: 12) {
198
+ ProgressView("Loading…")
199
+ ProgressView("Copying files", value: progress)
200
+ }
201
202
+ Example("progressViewStyle") {
203
204
+ // determinate, but drawn as a ring
205
+ ProgressView(value: progress)
206
+ .progressViewStyle(.circular)
207
+ // indeterminate, but drawn as a bar
208
+ ProgressView()
209
+ .progressViewStyle(.linear)
210
211
212
213
214
0 commit comments