DesignCode’s Post

View organization page for DesignCode, graphic

1,525 followers

Embed Rive animated assets in SwiftUI Visit Rive website, click on Runtimes, select iOS and copy the GitHub URL. In Xcode, select File, then Add Packages, and enter the URL in the top right corner. Select Rive iOS and click Add Package. Import your Rive animated assets in your project. Import Rive Runtime. Replace the existing text with Rive ViewModel. For the file name, use Shapes which is part of the Rive Assets folder. To ensure the view renders correctly, add .view parentheses. To trigger an animation, add a new on tap gesture. Set button play, and the animation name inside the parentheses is going to be active just the way we set it in Rive Editor. And when we tap the button, the animation is now playing. To learn more, follow the complete free course. #swiftui #iosdevelopment #swift

To view or add a comment, sign in

Explore topics