Skip to content

Instantly share code, notes, and snippets.

@sturdysturge
Last active January 24, 2021 05:08
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/f8e54e13542563b2eb580c741f718bab to your computer and use it in GitHub Desktop.
Save sturdysturge/f8e54e13542563b2eb580c741f718bab to your computer and use it in GitHub Desktop.
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