HelloAnimation
is a demonstration of animation in SwiftUI designed for VisionOS, showcasing how to use custom animations and color gradients. This project demonstrates creating complex linear gradients for various commodity colors (gold, silver, platinum, and bronze) and applying these gradients within an animated path.
Here how it looks.
Ideally you should ask your designer to create SVG file with single continuous bezier curve, export it and convert it with online converter like this one or manually. You can find "Hello" example here.
- Built with Swift and SwiftUI.
- Supports multiple commodity color gradients: Gold, Silver, Platinum, and Bronze.
- Custom
Shape
for animated path. - Implements
LinearGradient
for rich color gradient effects. - Infinite loop animation effect, elegantly displaying animation capabilities.
Clone this repository to your local machine:
git clone https://github.com/yourusername/HelloAnimation.git
Ensure you have the latest version of Xcode and the SwiftUI library installed in your development environment to compile and run this project.
Open the OpenvisionOS.xcodeproj project file, select a simulator or connected device, and then run the project. The animation will play immediately upon app launch.
If you would like to contribute to HelloAnimation, please follow these steps:
This project is licensed under the MIT License. See the LICENSE file for more details.