Create a UINavigationController With a Gradient as a Background
Not as difficult as it sounds!
4 min readDec 28, 2022
Prerequisites:
- You will be expected to be aware how to make a Single View Application in Swift
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