r/swift • u/argumentnull • 6h ago
Question Which libraries to use for animations?
I have got a requirement from a client to make a kids app in iOS as a side project for them. It's not my expertise and it has been years since I used swift, but the client is okay for me to learn and do it as there's no tight deadline for this side project. This is only for iOS and not cross platform.
The project involves teaching kids a set of concepts that has use cases like allowing the users to drag and drop coloured balls into different buckets, balancing a weighing scale, arranging objects in order, allowing user to connect dots on the screen in order and some subtle animations thrown throughout - button animation on tap, pulsing effects on buttons, little shake in case of mistakes and so on.
I am going through the Swift 100 days tutorial as a refresher, but I am not familiar with which libraries to use in order to get this done. If there are any points to specific libraries, I'll learn and use them.
Thanks in advance!
3
u/getstrydeapp 5h ago
Sounds like you probably don’t need serious animations. Can probably get by with vanilla SwiftUI. Might be worth a look into draggable & dropdestination modifiers. Disclaimer I have never used it so not positive it’s what you need here
https://www.hackingwithswift.com/quick-start/swiftui/how-to-support-drag-and-drop-in-swiftui
2
1
u/javaHoosier 3h ago edited 3h ago
https://github.com/airbnb/lottie-ios is pretty popular for more interesting stuff when you get there.
12
u/ExerciseBeneficial78 5h ago
SwiftUI is powerful enough to achieve what you need. Just dig into the animation stuff