
Use withAnimation to get a default animation instance in SwiftUI. Get the source code ?? https://gist.github.com/amosgyamfi/e48227688a0d46dc7bbd3d780fe62e18#file-defaultanimationwithanimation-swift
This video shows you how to get a default animation instance when using the animation modifier in SwiftUI.
Get the source code ?: https://gist.github.com/amosgyamfi/8828f99b3d2ad1fb854efb8e64840c55
Preview and copy animation configurations in the SF Symbols app, using presets like scale and variable color to drive SwiftUI symbol animations.
Using the new Phase Animator in SwiftUI, you can build complex and multi-step animations. Rather than animating between 2 states, you can define multiple steps that happen in sequence. In this video, you will learn the basics of how it works.
Discover the various standard easing types in SwiftUI and how to use the correctly.
Discover a seamless SwiftUI Christmas tree animation using concentric circles with emojis, offset above rotation, and 3D rotation. Control timing with linear easing and delays for a looping effect.
Turn the Christmas tree SwiftUI animation into a New Year's Eve version by rotating a behind-the-tree image and animating hue rotation with linear or other easing in the Xcode project.
Explore SwiftUI animation movement types, including linear, ease in, ease out, default, spring, and custom cubic bezier timing curves for animating shapes and paths.
Source code: https://github.com/amosgyamfi/open-swiftui-apps
Learn to build SwiftUI animations with the Alex tool and cloud 3.5 sonnet, generating spring animations with face animator from a to b drag gesture, and integrating code into Xcode.
Demonstrate creating a heart animation in SwiftUI using Grok 3 and Claude 3.5 Sonnet, leveraging deep search to assemble, debug, and finalize the code.
Source code: https://gist.github.com/amosgyamfi#:~:text=amosgyamfi%20/-,LoadFromRemoteURL.swift,-Last%20active%2017
In this tutorial, we will use the Model3D view in SwiftUI to load 3D content and animate its rotation for visionOS.
NOTE: In the introduction, I mistakenly mentioned iOS. That should be visionOS.
Let's create the Siri animation in visionOS using SwiftUI's 2D, 3D, and hue rotation animations.
Create a sliding text animation in SwiftUI by treating text as a character array, staggering letters with delays and applying offset, rotation, hue rotation, and 3D rotation for right-to-left slide.
In this video, you will learn how to transition a hamburger icon into a back icon by animating scale, rotation, spacing, width, and offset.
Learn how to combine rotation, scale transform, and opacity to transition a hamburger icon into a close icon.
Discover how to build a clone of the Twitter Like animation with SwiftUI. Note: There is another section where you can find this animation. That explains animating specific properties.
When animating in SwiftUI, you can put .delay() before or after (repeatCount or repeatForever). Each approach gives you different results. Let's look at that in this video.
Using SwiftUI, you can delay animations using the dispatch queue, the delay modifier, or the standard easing equations. Learn how to do that in this video.
In SwiftUI, we can use the alignment parameter to arrange views to the right, left, top and bottom depending on the stack container. This alignment parameter is also animatable. In this video, we look at how to use alignment to create movement.
In this video, we will learn how to make a smooth dashed border rotation animation like 'marching ants' in SwiftUI. This will be done using the dash phase parameter of a shape view.
In this video, we will build the sun and moon animation. You will learn how to
move objects on a circular path
change anchor point position
animate scale parameters such as X and Y.
mask a view using clip shape
Hi, my name is Amos Gyamfi. I have been using SwiftUI to create animations since its first release in 2019. I am so excited to teach you how to get started and build your next iOS, iPadOS, macOS, visionOS, and watchOS app animations using SwiftUI.
Welcome to Animate With SwiftUI: iOS, macOS, watchOS, and visionOS. This course gives you a solid foundation and the basic principles for animating anything you can imagine with SwiftUI. We will first go through how things change over time, so that you know, for example, how objects move. We will then look at creating basic animation and Spring Animation, using Phase Animator, Keyframe Animator, and more. You will learn how to make your app animations look better, delightful, and valuable using nothing but SwiftUI. So, let’s get started with Animate With SwiftUI: iOS, macOS, watchOS, and visionOS.
Learning Objectives
Understanding animation and motion in SwiftUI
Working with anchor points (center of mass)
Understanding basic animation
Creating phase-based, keyframe, and spring animations in SwiftUI
When and how to use easings
How to make iOS app animations look better
The basics of animation timing
Animating in 3D
Accessible animations and Reduce Motion on iOS
Creating Basic Animation
Create your first SwiftUI animation
How to create rotational animation: Yahoo Weather, Sun, and Wind
How to animate scale transforms (x, y, and xy)
How to animate movement using offset (x and y)
How to animate movement using alignment
Create your first Apple Watch animation
How to animate Hue Rotation
Implicit and Explicit Animation
What is an implicit animation?
What is an explicit animation?
Understanding and Animating Masks
How to animate the corner radius of a view
Animating Touch ID using mask offset
Animating SF Symbols and Visual Effects
How to animate color
How to animate gradients
Using SF Symbol animation types
Understanding Variable Color animations
Mastering Animation Timing and Pacing
What is animation timing?
What is animation pacing?
How to change an animation's begin time using delay
What is a repeat count?
How to repeat an animation forever
How to adjust an animation speed
Easing: Understanding How Things Move
Default
Linear
EaseIn
EaseOut
EaseInOut
Animating with Match Geometry Effect
Using Custom Timing Curves
Sinusoidal
Circular
Exponential
Special Effects
Using Phase Animator
Create your first animation with Phase Animator
Customizing your phase animation
Create human-inited animations with Phase Animator
Learning Spring Animations
Understanding Spring Animation parameters
What is stiffness?
What is damping and damping fraction?
What is mass?
What is a spring response?
What is initial velocity?
Understanding duration and extra bounce
Modeling and using custom springs
Drawing and Animating Path in SwiftUI
How to bring a compound path from Sketch
How to make an animated matching ants
Using animation trimming to draw and erase paths
Understanding and animating with dash phase
How to Add Animations to Standard Controls
How to animate a toggle switch
Animating in 3D
How to replicate the FaceID confirmation animation
3D parallax animation on Apple TV
Building Clones of iOS App Animations
Measuring heart rate on Apple Watch
Breathe animation on Apple Watch
Tide app's breathe animation
StepApp's step-counting animation
Using Transitions
Creating page-to-page transitions
Creating view-to-view transitions
How to make SwiftUI Animations Accessible and Inclusive
How to combine animating children into one element
How to tell voice-overs that an animating element is a button
How to label animating elements
How to Implement Reduce Motion For SwiftUI Animation
How to disable animations when Reduce Motion is on
How to present subtle/less excessive animations when Reduce Motion is on