Pull to refresh animation using Rive + SwiftUI

Tried creating a pull to refresh animation with Rive + SwiftUI šŸš€

After experimenting with different animations in Rive, IĀ decided to create something truly interactive and delightful āœØ. There's nothing better than a pull to refresh animation that feels seamless with the userā€™s interaction!

Hereā€™s how I did it:

1ļøāƒ£ Designed the illustration in Figma and exported assets as SVG.

2ļøāƒ£ Imported the assets into Rive, animated them, and set up input triggers for pull and refresh in the state machine. Then, exported the .riv file.

3ļøāƒ£ Integrated it into an iOS app using Xcode and the Rive iOS SDK (with some help from ChatGPT for the code XD)

More by Pritesh Chaudhari

View profile