Member-only story

New SwiftUI: Spinner Animation using Xcode 14

AnthonyDesignCode
3 min readNov 21, 2022

--

Photo by Soothy Spinner on Unsplash

Hello everyone, welcome to a new SwiftUI tutorial. I hope you are all doing well. Today I am going to show you how to create a spinner animation in SwiftUI 4 and Xcode 14.

Let’s get started with opening up Xcode 14. We are going to add some images and create a color in the assets file! I have added three images of food and a light purple color for this example the color does not really matter as long as you call it BG and the images of are different but named like this: Food1, Food2, Food3.

Assets

Dope! Now we are all set to start coding! 💻 We are going to create a new Swift file just for the data.

Food

Now we are going to create the HomeView now the is where we are going to create the main ui.

HomeView

--

--

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