-
-
Save sturdysturge/920185aaf6db2bae567a558e9382ce9f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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