I'm modally presenting a viewController with a semi-transparent view. It's a custom activity indicator. I would like it to cover the view, but leave the navigation bar and tab bar visible and accessible.
The docs, and several SO answers (e.g. Presenting a Modal View Controller hides the Navigation Bar) seem to suggest that presenting the modal onto the navigation controller should achieve this. But when I do it, it shows the tab bar correctly, but covers the navigation bar.
Any ideas? Here is the relevant code:
let spinnerVC = SpinnerViewController()
spinnerVC.modalPresentationStyle = .overCurrentContext
spinnerVC.modalTransitionStyle = .crossDissolve
self.navigationController?.present(spinnerVC, animated: true, completion: nil)
//self.navigationController is definitely not nil