Create a UINavigationController With a Gradient as a Background

Not as difficult as it sounds!

Steven Curtis
4 min readDec 28, 2022
Photo by Joshua Earle on Unsplash

Prerequisites:

Terminology:

UINavigationController: A container for view controllers that defines a method for navigating content based around a stack

The process

Setting up the UINavigationController subclasses

Where UINavigationController subclasses have been used is it required to create the subclass — for example GradientNavigationController is created through

File>New>File…

then creating a UINavigationController

Which then, while using the Storyboard the subclass is chosen as in the following image

--

--