-
-
Save sturdysturge/42c8ea893f870e47e944ae8afabdbd0c to your computer and use it in GitHub Desktop.
ProgressingView
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 ProgressingView: View { | |
@State private var progress = 0.5 | |
var body: some View { | |
VStack(spacing: 15) { | |
ProgressView() | |
ProgressView("Downloading", value: progress, total: 1) | |
.progressViewStyle(CircularProgressViewStyle(tint: .accentColor)) | |
ProgressView(value: progress) | |
.accentColor(.red) | |
Slider(value: $progress, in: 0...1) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment