UIKit Dynamics - Why you would use physics based animations to your views in Swift

Опубликовано: 15 Октябрь 2024
на канале: Karin Prater
1,719
57

UIKit Dynamic is a great way to include physics based animations in your iOS apps. I will show you an example that I implemented in my app Assocy, where the user can sort items into different categories.

Other use cases could be to animating
views appearing or disappearing by dropping them with a gravity field
games with unusual / freaky physics worlds
squishy buttons
loading animations with views flying across the screen.

Alternatively, there is the SpriteKit framework for game development.

Apple Documentation for UIKit Dynamics
https://developer.apple.com/documenta...

Assocy App uses physics based animations to make the user interaction more fun and playful. Check the Grouping exercise.
https://apps.apple.com/us/app/assocy-...

What is a similarity? https://www.livescience.com/what-is-s...

If you liked what you learned and you want to see more, check out one of my courses!
👨‍💻 my SwiftUI course https://school.swiftyplace.com/course...
👨‍💻 my Core Data and SwiftUI course https://school.swiftyplace.com/course...
👩🏻‍💻 Combine course
https://school.swiftyplace.com/course...

#Swift #Physics #InteractiveAnimations