Repolode
amosgyamfi

amosgyamfi/open-swiftui-animations

A collection of copy-ready SwiftUI animation examples covering loading, looping, transitions, springs, and effects, built with SwiftUI alone.

Stars
5,688
Forks
296
Open issues
21
Last commit
3 months ago

What is it?

Open SwiftUI Animations is a set of animation examples for iOS, macOS, visionOS, and watchOS apps, all built with SwiftUI's own animation APIs rather than an external library. The examples cover loading and progress indicators, looping and on-off effects, enter and exit transitions, fades, spins, background motion, and spring-based reactions.

The Xcode project and Gists show how to use newer SwiftUI tools such as PhaseAnimator, KeyframeAnimator, symbol effects, and GlassEffectContainer for iOS 17 and later. Many examples are short enough to paste into your own views and adapt, including typewriting text, dash-phase border motion, trimmed path signature drawing, and numeric text crossfades.

The repository is a source of ideas rather than a dependency. Each example is standalone SwiftUI code, and the author notes that some animations were generated with AI models and are provided unedited.

Key features

  • 01Pure SwiftUI code with no third-party animation dependency
  • 02Examples for PhaseAnimator, KeyframeAnimator, and symbol effects
  • 03Loading, looping, enter/exit transitions, and spring animations
  • 04Standalone Gists for typewriting, dash-phase borders, and path trimming
  • 05Covers iOS, macOS, visionOS, and watchOS projects

Use cases

  • Adding a loading or progress indicator to an iOS app without extra packages
  • Learning how PhaseAnimator or KeyframeAnimator sequences work in practice
  • Building a reaction or like button with spring motion
  • Finding ready-made effects such as numeric text transitions or animated signatures

Quick start

  1. 1

    Open the OpenSwiftUIAnimations Xcode project from the repository

  2. 2

    Pick an animation example and copy its code into your SwiftUI project

Things to know

  • Targets Apple platforms and Swift only, with no cross-platform support.
  • Some examples, such as Phase Animator and Keyframe Animator, require iOS 17 or later.
  • Some included animations are unedited AI-generated code that may need modification.

In collections

Topics

#swiftui#ios#animation#swift#visionos#watchos#ui-design#animations#app-animations#dynamic-island

FAQ

What is open-swiftui-animations?
A collection of copy-ready SwiftUI animation examples covering loading, looping, transitions, springs, and effects, built with SwiftUI alone. Open SwiftUI Animations is a set of animation examples for iOS, macOS, visionOS, and watchOS apps, all built with SwiftUI's own animation APIs rather than an external library. The examples cover loading and progress indicators, looping and on-off effects, enter and exit transitions, fades, spins, background motion, and spring-based reactions.
Is open-swiftui-animations free to use? What license does it have?
open-swiftui-animations is open source under the Unlicense license. Check the license terms before using it in commercial products.
Is open-swiftui-animations still maintained?
Updated within 6 months. The last commit to open-swiftui-animations was on Aug 14, 2026.
What can I use open-swiftui-animations for?
Adding a loading or progress indicator to an iOS app without extra packages Learning how PhaseAnimator or KeyframeAnimator sequences work in practice Building a reaction or like button with spring motion Finding ready-made effects such as numeric text transitions or animated signatures
How do I install open-swiftui-animations?
Open the OpenSwiftUIAnimations Xcode project from the repository Pick an animation example and copy its code into your SwiftUI project
Where can I get open-swiftui-animations?
The source code and installation instructions are on GitHub: https://github.com/amosgyamfi/open-swiftui-animations

Summary generated by AI from the project's README. GitHub stats refresh daily.

Related projects