Skip to content

Instantly share code, notes, and snippets.

@sturdysturge
Created January 24, 2021 05:05
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/9893a20195236ced02706318cf174e2f to your computer and use it in GitHub Desktop.
Save sturdysturge/9893a20195236ced02706318cf174e2f to your computer and use it in GitHub Desktop.
struct InvertedDirectionProgressViewStyle: ProgressViewStyle {
func makeBody(configuration: Configuration) -> some View {
GeometryReader { geometry in
ProgressView(configuration)
.frame(height: geometry.size.height)
.rotation3DEffect(.degrees(180), axis: (x: 0, y: 0, z: 1))
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment