Animate an Icon in Swift

Make it look good

Steven Curtis
3 min readOct 31, 2022
Photo by Louis Zhang on Unsplash

Before we start

Difficulty: Beginner | Easy| Normal | Challenging

This article has been developed using Xcode 12.2, and Swift 5.3

Prerequisites

Keywords and Terminology

UIImage: An object that manages image data

UIImageView: An object that displays a single image or a sequence of animated images

This article

Background

I’ve previously written an article about UIView Animation, but I’ve never covered how to create those little animations that will make your UI a bit better.

This article? It will cover exactly that.

The Repo

I’ve prepared a Repo for you! Hope you can download the code, and it works well for you (if not please do hit me up with a comment).

What Are we going to achieve?

We will use UIView.animate to create icons on the screen that will change when you click on them. There isn’t anything much else to say, but the icon and…

--

--