Skip to content

Instantly share code, notes, and snippets.

@sturdysturge
Last active June 27, 2020 20:06
Show Gist options
  • Save sturdysturge/42c8ea893f870e47e944ae8afabdbd0c to your computer and use it in GitHub Desktop.
Save sturdysturge/42c8ea893f870e47e944ae8afabdbd0c to your computer and use it in GitHub Desktop.
ProgressingView
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