This repository contains a SwiftUI project that demonstrates the integration of a Rive animation using the Rive community file.
This project showcases how to implement a Rive animation in a SwiftUI application. The Rive file used in this project is available both in this repository and on the Rive Community.
- Xcode 12 or later
- iOS 14 or later
- Swift 5.3 or later
- CocoaPods (for Rive dependency management)
- Clone this repository:
- Navigate to the project directory:
- Install dependencies using CocoaPods:
- Open the
.xcworkspace
file in Xcode.
The main implementation of the Rive animation can be found in ContentView.swift
. To use this animation in your own project:
- Add the Rive file to your Xcode project.
- Import the Rive framework in your SwiftUI view.
- Use the
RiveViewModel
to load and control the animation.
The Rive file used in this project is also available on the Rive Community. You can find it here.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE.md file for details.