Skip to content

Instantly share code, notes, and snippets.

@sturdysturge
Created January 24, 2021 05:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sturdysturge/920185aaf6db2bae567a558e9382ce9f to your computer and use it in GitHub Desktop.
Save sturdysturge/920185aaf6db2bae567a558e9382ce9f to your computer and use it in GitHub Desktop.
struct ProgressDemoView: View {
@State var value = Double()
var body: some View {
VStack {
Slider(value: $value, in: 0...1)
ProgressView(value: value)
.progressViewStyle(InvertedDirectionProgressViewStyle())
HStack {
ProgressView(value: value)
.progressViewStyle(InvertedVerticalProgressViewStyle())
Spacer()
.frame(width: 370)
ProgressView(value: value)
.progressViewStyle(VerticalProgressViewStyle())
}
.frame(width: 50, height: 200)
ProgressView(value: value)
.progressViewStyle(InvertedColorProgressViewStyle())
}
.frame(height: 200)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment