Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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