Member-only story

SwiftUI Tutorial – How to create Spinners in Xcode 12 Part 3

AnthonyDesignCode
3 min readMar 15, 2021

--

Welcome to a new SwiftUI tutorial. We are going to be creating some simple spinners over the next few weeks we are going to be creating three spinner animations using SwiftUI 2.0 in Xcode 12.

Let’s get started 👌

We are going to open up our last project, we are going to dive into our last spinner.

Let’s get create a new HStack and Circle.

We are now going to add a trim we are going to make this spinner 1/8 so we are almost full. And then we are going to add a stroke the lineWidth is going to be 3.

Now we are going to add a foregroundColor and a frame.

Awesome we are now going to add a rotationEffect and an animation to our small spinner.

--

--

AnthonyDesignCode
AnthonyDesignCode

Written by AnthonyDesignCode

Hey 👋 I’m Anthony! I hope you are well?! Thank you for looking at my blog. Here you will learn how to make apps in SwiftUI for iOS 16! Thanks for reading.

No responses yet