The UINavigationController and UINavigationBar in Swift

Improve your user experience

Steven Curtis
7 min readNov 13, 2020
Diagram by Steven Curtis

Unusually for one of these articles I’ve presented two separate Projects within the repo

Difficulty: Beginner | Easy | Normal | Challenging
This article has been developed using Xcode 12.1, and Swift 5.3

Prerequisites:

- You will be expected to be aware how to make a Single View Application in Swift

- One of the implementations assumes you can create a UIViewController programmatically

- The concepts described here are the same as those covered in stacks

Terminology

Stack: A data structure used to store objects Storyboard: A way to graphically layout the UI in Xcode UINavigationBar: A bar containing buttons for navigating within the hierarchy of screens UINavigationController: A container that stores view controllers in a stack

The image at the top of the article (repeated here for ease of reading)

--

--

No responses yet