Member-only story
Animate a UIBarButtonItem using Swift
Make it look good!
Before we start
Difficulty: Beginner | Easy | Normal | Challenging
This article has been developed using Xcode 12.2, and Swift 5.3
Keywords and Terminology
UINavigationBar: A bar containing buttons for navigating within the hierarchy of screens
This article
Background
I’ve always wanted to create great user experiences. One way of doing this is to put lovely animations onto your UI. The UINavigationBar
is a great opportunity for that.
The Repo
I’ve prepared a Repo
The Project
I started off the project and in the storyboard embedded the UIViewController
instance in a UINavigationController
, and then a UIBarButtonItem
is added using the storyboard.
The image can then be chosen using the storyboard. Select the storyboard, and then find bar button item in the components by choosing with + and selecting the bar button item