amosgyamfi/open-swiftui-animations
소개
SwiftUI 앱에 간단한 효과를 추가하기 위해 애니메이션 라이브러리를 사용할 필요는 없습니다. SwiftUI만으로 직접 만들 수 있습니다. 이 저장소는 다음 프로젝트에 로딩/진행률, 반복, 켜기/끄기, 진입, 종료, 페이드, 회전, 배경 애니메이션 등 유용하고 표현력 있는 SwiftUI 애니메이션을 추가할 수 있도록 영감을 제공합니다. 다양한 스프링 애니메이션도 포함되어 있습니다.
디자인 및 미디어측정된 스타 증가
- in 24h
- +1
- in 7 days
- +6
- in 15 days
- +6
- in 1 month
- +13
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalOpen SwiftUI Animations
Pure SwiftUI animation inspirations for your next iOS, macOS, visionOS, and watchOS projects. Enjoy 😊.
Support
Animate Anything With SwiftUI

SwiftUI animation is compelling and superb. With minimal effort, you can add incredible effects and beautiful animations to your apps. Why use an animation library instead of creating these tiny effects yourself? Get inspiration from here and start building your SwiftUI animations today. Most animations here are based on the animations section in the Apple Developer Documentation. Check out the Xcode project for examples of the new Phase Animator, Symbol Effects, Keyframe Animator, and Spring Animations for iOS 17 and beyond. Would you like to see an animation that is not here, or did you find an engaging one to add? Contact me on X: @amos_gyamfi or add it as a task in the project's backlog.
Starting in 2025, I will generate some of the SwiftUI animations using SOTA models like Gemini 2.5 Pro, Claude 3.7 Sonnet, OpenAI o3, and o4-mini models.
Liquid Glass Shape Morphing Animation With GlassEffectContainer: Gist

import SwiftUI
struct LiquidGlassEffectContainer: View {
var body: some View {
GlassEffectContainer(spacing: 50) {
PhaseAnimator([false, true]) { morph in
HStack(spacing: morph ? 50.0 : -15.0) {
Button {
//
} label: {
Image(systemName: "scribble.variable")
}
.padding()
.glassEffect()
Button {
//
} label: {
Image(systemName: "eraser.fill")
}
.padding()
.glassEffect()
}
.tint(.green)
.font(.system(size: 64.0))
} animation: { morph in
//.bouncy(duration: 2, extraBounce: 0.5)
//.easeOut(duration: 2)
.easeInOut(duration: 2)
//.timingCurve(0.68, -0.6, 0.32, 1.6, duration: 2)
}
}
}
}
#Preview {
LiquidGlassEffectContainer()
.preferredColorScheme(.dark)
}
Typewriting, Erasing & Cursor-Blinking-Style Animation: Gist

Safari-Style Add to Bookmarks Animation: Gist

Animated, visual guide to SwiftUI mask(alignment::), clipShape(:style:), and clipped(antialiased:): Gist

2D rotation around specified anchor: Gist

SwiftUI New Year's Eve Fireworks: Gist

Image generation loader: Gist

3 Ways to add animations: Gist

Gemini 2.5 Pro + OpenAI o3 SwiftUI-generated animations: Gist. Note: The animations are unedited. Modify and use them to suit your needs.

Thinking, Weighing Options, Evaluating Sentence
SwiftUI Moving Border With dashPhase
Getting Inner and Outer Borders
PulsingHearts.swift
SlideToUnlock.swift: Find All Variations
CrossFadeNumericTransition.swift
Hue Rotation effect with Phase Animator
Hello WWDC24
Duolingo getting started and loading animations
How Things Move: Constant speed, acceleration, deceleration
Vision Pro 3D rotation
3D Rotate String Characters
Flip String Characters in XYZ
Use DashPhase to move dashes around a shape.
Animated Signature: Use trimming to draw and erase the path.
Reactions with Springs: EmotionalReactions.swift

Expressive Reactions: IncomingMessageView.swift

Content Transition: Smooth Symbols Swapping: Add soon

**Content Transition, Phase Animator with Springs: Create seamless icon replacement: Add soon

X Like Animation: XLike Animation

Animating Achors: Add soon

Achieving Bounce: Add soon

3D Y-Rotation - visionOS: Add soon

Incoming call animation, symbol effect with variable color and hue rotation: IncomingCall.swift

관련 프로젝트 살펴보기
불러오는 중…














