Sitemap

Member-only story

Create a UINavigationController With a Gradient as a Background

Not as difficult as it sounds!

--

Press enter or click to view image in full size
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

Press enter or click to view image in full size

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

Press enter or click to view image in full size

--

--