Member-only story
SwiftUI Tutorial – How to create Spinners in Xcode 12 Part 2
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 take out some of our State private var’s before we get started as we will not be needing them anymore.
Great now that is done we can start be editing the lineWidth on our first Spinner, we are going to make this bigger.
Now we have done some clean up, we are looking good. We are going to create a new HStack and create a new circle. Make sure you have created the HStack after the .onAppear!
Now we are going to add a trim and stroke to our circle. We are going to change the trim to 1/2. This will change the circle into half.