
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
Explore three fundamental ways to animate SwiftUI views: wrap state changes with withAnimation, apply the animation modifier, and bind values to create smooth transitions for elements like circles and sliders.
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.
Animate three pulsing circles with face animator and symbol effect in SwiftUI, using ellipses with SF Symbols, delays, and custom easing to create a looping, layered animation.
learn to apply the hue rotation modifier to SwiftUI views, animate color shifts with a timer and random angles, and create per-rectangle gradient animations using face animator.
Learn to tailor SwiftUI spring animations by adjusting duration and extra bounce, using with animation to create snappy or bouncy effects.
Create a Mickey Mouse–style animation in SwiftUI using the Phase Animator and Face Animator modifiers, animating the upper body, skirt, shoes, eyes, and tongue with offsets, rotations, and timing curves.
Explore two SwiftUI animation approaches for a thumbs-up button: dispatch queue-based spring on older iOS versions and the face animator on iOS 17, with customizable scale, rotation, and anchor.
Learn how to use animation completion criteria in SwiftUI to return an icon to its state, with animation, completion closure, and a bouncy spring (extra bounce 0.4) in iOS 17.
Prevent unintended animations in SwiftUI by avoiding the animation modifier on a group and instead applying animation to views, or wrapping state changes with withAnimation to control the animation.
Create a color rotation effect in SwiftUI by applying the face animator modifier with hue rotation and a two-step trailing-closure animation.
Discover the various standard easing types in SwiftUI and how to use the correctly.
Create a two-step animation in SwiftUI on Xcode Playground for iPad, using a button to move up with a bouncy spring and return to zero via animation completion criteria.
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.
Create a circular motion in SwiftUI by combining rotation effect and offset to move the safari symbol along a circle, using a ZStack and a 200px circle.
Learn to apply cubic Bezier curves to SwiftUI animations by replacing linear easing with a timing function from easings.net. Copy the values, paste, and set a duration.
Create a typewriting, erasing, and cursor-blinking SwiftUI animation in Codex for a text view. Start from Xcode project and use prompts to customize with a face animator and keyframe animator.
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
Explore building a SwiftUI animation with six state-of-the-art models, using a common prompt to recreate a spinning sparkle, rotating circle stroke, and music icon motion in Xcode.
Learn to build a simple loading animation in SwiftUI with a sparkle, a stroked circle (animated stroke start and end), and a music symbol in ZStack using ease in out.
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.
Prepare your SwiftUI views, check mark and two circles in a zstack, to guide AI-generated animations, then prompt the model to animate with the trim modifier and spring effects.
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.
Learn to add particle effects with Reality Composer Pro for vision OS and SwiftUI, including rain, confetti, fire, and fireworks, via usdz export or embedded in a vision OS project.
Build the Apple hello lettering animation in SwiftUI by tracing letters in Figma, converting the SVG path to a SwiftUI path, then animating with trim and a face animator.
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.
Create dynamic text animations in iOS 17 using the face animator to cycle through faces with phase values, applying opacity and scale effects, and customizing with animation closures.
Master SwiftUI animation fundamentals, starting with state-driven changes, then spring animations, and 3D rotation and transformation effects, with weekly project updates.
Explore SwiftUI, Apple's framework for building interfaces, and learn to create a from-scratch iOS app with animations using a state variable, onAppear, opacity, and spring timing that repeats.
Explore a tour of SwiftUI animations and see examples you will create in the SwiftUI animation foundations course, which will be updated to include more SwiftUI animations.
Launch Xcode and create a new SwiftUI app named blankSwiftUI, selecting the platform and language, then use the navigator, properties inspector, and preview for design and testing.
Discover how to animate SwiftUI views by creating a state variable, triggering with onAppear, and applying rotation, scale, or opacity using an animation modifier.
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.
Create an audio visualization in SwiftUI by generating six rectangles with random heights, animating their height via a state-driven transition, and looping with on appear and repeat forever.
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