Skip to content

Instantly share code, notes, and snippets.

@sturdysturge
Created January 24, 2021 05:06
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/262d621a21c0e441cde618dd8a559243 to your computer and use it in GitHub Desktop.
Save sturdysturge/262d621a21c0e441cde618dd8a559243 to your computer and use it in GitHub Desktop.
struct VerticalProgressViewStyle: ProgressViewStyle {
func makeBody(configuration: Configuration) -> some View {
GeometryReader { geometry in
ProgressView(configuration)
.frame(width: geometry.size.height)
.offset(x: geometry.size.height / 2, y: geometry.size.height / 2)
.rotationEffect(.degrees(90))
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment