Custom ‘tab bar controller’ for two child VCs

24 May 2019
 

The 1.1.1.1 App uses an interesting way of navigating to and from its settings menu. It performs the role of a tab bar, but possibly looks a lot cleaner than a tab bar would with only two items.

To accomplish a similar navigation I wrote a simple subclass of UIViewController that has two child VCs and swaps between displaying each of their views using a persistent UIButton.

Find the project here.