Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save SarahAlsharif/42f1cc82cf8061e3b487c8a2d1bfebd5 to your computer and use it in GitHub Desktop.

Select an option

Save SarahAlsharif/42f1cc82cf8061e3b487c8a2d1bfebd5 to your computer and use it in GitHub Desktop.
struct ContentView: View {
@State var degree = 0.0
var body: some View {
ZStack {
LinearGradient(colors: [.blue.opacity(0.7),.purple.opacity(0.7)], startPoint: .topLeading, endPoint: .bottomTrailing).ignoresSafeArea()
Color.black.opacity(0.8).ignoresSafeArea()
MyView(degree: $degree).modifier(InteractiveView())
.frame(width: 300, height: 300)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment