diff --git a/ios/Platform/Platform/ContentView.swift b/ios/Platform/Platform/ContentView.swift index cd3ffa7..63c8127 100644 --- a/ios/Platform/Platform/ContentView.swift +++ b/ios/Platform/Platform/ContentView.swift @@ -211,14 +211,14 @@ struct PhysicsModifier: ViewModifier { private let gravity: CGFloat = 0.6 private let duration: Double = 1.6 - var body: some View { + func body(content: Content) -> some View { let x = startX + vx * time let y = startY + vy * time + 0.5 * gravity * time * time content .offset(x: x, y: y) .opacity(opacity) - .rotationEffect(.degrees(spin * Double(time / 30))) + .rotationEffect(Angle.degrees(spin * Double(time / 30))) .onAppear { withAnimation(.easeOut(duration: duration).delay(delay)) { time = 30