Skip to content

Instantly share code, notes, and snippets.

@karthironald
Created June 25, 2020 04:00
Show Gist options
  • Save karthironald/d32a1227e4fba0a6234df7ce9af72229 to your computer and use it in GitHub Desktop.
Save karthironald/d32a1227e4fba0a6234df7ce9af72229 to your computer and use it in GitHub Desktop.
import SwiftUI
struct ContentView: View {
var body: some View {
ProgressView(label: {
Button(action: {}, label: {
Text("Cancel")
.font(.subheadline)
.bold()
.padding(5)
.background(Color.blue)
.foregroundColor(.white)
.cornerRadius(5)
})
.scaleEffect(0.5, anchor: .center)
})
.scaleEffect(2, anchor: .center)
.progressViewStyle(CircularProgressViewStyle(tint: .blue))
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment