I have added a tint to the UINavigationBar via the following lines of code in the AppDelegate:
let navBar = UINavigationBar.appearance()
navBar.barTintColor = mainColor
However when I go to a different view via a segue, I lose the color. View 2 isn't embedded in its own UINavigationController.
If I embed it in a nav controller it appears however if I go to View 3 from View 2, it too disappears.
I'm using 'Show' as the segue option.