|
Hello, I came across this issue while following the tutorial for Animating Gestures from day 33. The code tries to animate a drag gesture, wherein the individual letters from the text are attached with an increasing delay. The animation works fine only for the first drag motion. After that, the animation stops working completely until I let go (where the letters go back to their original position and the color change is animated). I am using using Xcode 15.0 and iOS 17.0 However, upon setting the minimum deployment parameter to iOS 15.0 in the target settings, the animation works as expected and as shown in the tutorial. Has anyone noticed this behaviour and has an explanation for it? Thanks in advance! Code from the tutorial
|
|
@Adnan asks:
Confirmed!Yes! I copied your code above to a new project and, indeed, the animation does not work as advertised unless the minimum deployment is set to iOS 15. CauseI have no idea why the Clearly the Default and Spring AnimationThe new default animation is the . This is Weird!I also tried this on my iPhone running iOS 17 and can confirm the |
|
|
|
Hello, I came across this issue while following the tutorial for Animating Gestures from day 33. The code tries to animate a drag gesture, wherein the individual letters from the text are attached with an increasing delay. The animation works fine only for the first drag motion. After that, the animation stops working completely until I let go (where the letters go back to their original position and the color change is animated). I am using using Xcode 15.0 and iOS 17.0 However, upon setting the minimum deployment parameter to iOS 15.0 in the target settings, the animation works as expected and as shown in the tutorial. Has anyone noticed this behaviour and has an explanation for it? Thanks in advance! Code from the tutorial struct ContentView: View { let letters = Array("Hello, SwiftUI") @State private var enabled = false @State private var dragAmount = CGSize.zero
} |
SPONSORED Alex is the iOS & Mac developer’s ultimate AI assistant. It integrates with Xcode, offering a best-in-class Swift coding agent. Generate modern SwiftUI from images. Fast-apply suggestions from Claude 3.5 Sonnet, o3-mini, and DeepSeek R1. Autofix Swift 6 errors and warnings. And so much more. Start your 7-day free trial today!
Sponsor Hacking with Swift and reach the world's largest Swift community!
This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.
All interactions here are governed by our code of conduct.
Link copied to your pasteboard.