```
override func viewDidLayoutSubviews() {
    super.viewDidLayoutSubviews()
    let height = CGFloat(84)
    self.navigationController?.navigationBar.frame = CGRect(x: 0, y: 0, width: self.view.frame.width, height: height)
}

```

This code simply inserts space above the titleView. A custom titleView at point (0,0) has ~20 points of space above it. A height >40 starts to run off the navBar.