I'm not sure that you can do this from the storyboard, but if you want to add two header labels, you can do the following in the viewDidLoad () method of the view controller for which you want to use two headers:
if let navigationBar = self.navigationController?.navigationBar { let firstFrame = CGRect(x: 0, y: 0, width: navigationBar.frame.width/2, height: navigationBar.frame.height) let secondFrame = CGRect(x: navigationBar.frame.width/2, y: 0, width: navigationBar.frame.width/2, height: navigationBar.frame.height) let firstLabel = UILabel(frame: firstFrame) firstLabel.text = "First" let secondLabel = UILabel(frame: secondFrame) secondLabel.text = "Second" navigationBar.addSubview(firstLabel) navigationBar.addSubview(secondLabel) }
This way you can add as many subzones as you want in the navigation bar
vdawg source share