Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
struct InvertedVerticalProgressViewStyle: ProgressViewStyle {
func makeBody(configuration: Configuration) -> some View {
GeometryReader { geometry in
ProgressView(configuration)
.frame(width: geometry.size.height)
.rotationEffect(.degrees(90))
.rotation3DEffect(.degrees(180), axis: (x: 0, y: 0, z: 1))
.offset(x: -(geometry.size.height / 2), y: geometry.size.height / 2)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment