I am currently using this sidebar as a side menu to my app and it's working great. However, whenever I embed a tab item in a navigation controller, and I tap the burger icon, the side menu isn't displayed properly: the navigation bar is in front of the side menu, making the side menu looked cut.

I've tried using this code, but it throws an issue

self.view.sendSubviewToBack(self.navigationController?.navigationBar)

How do I effectively send my navigation bar to be always behind my other subviews (e.g. my side menu)? Or is there another way to fix this? Thank you so much for your help.

Related posts

Recent Viewed