Комментарии:
Update to Xcode 15 regarding ".spring": The current version of
withAnimation ( .spring( response: 0.9, dampingFraction: 0.1, blendDuration: 0))
is now:
withAnimation( .spring( Spring(response: 0.9, dampingFraction: 0.1 )))
Apple engineers must have reviewed your video!
Thanks you so much
ОтветитьDo you have a video showing how to set up your xcode like that?
Ответить"n SwiftUI, the .spring() animation modifier can be used to create spring-like animations. The .blendDuration() modifier is used in conjunction with .spring() to control the duration of the blending phase of the animation.
During the blending phase, the animation gradually changes from the current state to the final state, using a linear interpolation. The duration of this phase is determined by the .blendDuration() modifier.
For example, if you have an animation that lasts for 1 second and you set a blend duration of 0.5 seconds, the first half of the animation will be spent blending from the initial state to the final state, and the second half will be spent settling into the final state with a spring-like effect.
In simpler terms, the blend duration determines how long it takes for the animation to smoothly transition from the current state to the final state, before the spring-like effect takes over."
- thanks chat gpt
subscribed!
ОтветитьGreat tutorial, it helped me a lot:)
ОтветитьGreat I like repeat animation
ОтветитьGreat tutorial! Thank you👍
ОтветитьI was about to comment that this vid's clear, eary to understand and practice, found somone else already same feelins, thank you for making this tutorial!
Ответитьniceee
ОтветитьThank you Logan for formularizing it into 3 steps, making it much easier to understand 💯
ОтветитьNice tutorial, keep it up! Subscribed <3
ОтветитьThat's really helpful, thanks a lot
ОтветитьOne of the most beautiful and easy to understand tutorials i'v ever seen , you don't know how much i'v learned from this video , thank you 🤍
Ответитьthank you. How can I learn the basics 4 swift ?
ОтветитьGreat video easy to follow along to
Ответитьreally like that format, ideally keep it under 10 minutes, I like to watch those as a warm up / learning something new at the start of a day before work. 💪🔥
ОтветитьYour videos are super clear and easy to understand! Thanks
ОтветитьAbout 2 years ago when I was learning about spring animation the presenter said the exact same thing about blend duration. Some things never change 🤣
ОтветитьAwesome!! Thank you! Please keep making more swiftUI tutorials!!
Ответить