user3316585 user3316585 -4 years ago 95
Swift Question

Swift - SWRevealViewController menu placed after the status bar

I'm using SWRevealViewController menu and I have a header view for the table. You can see the table controller view structure and constrains:

enter image description here

And this is how my menu looks like enter image description here

but I need it to be like enter image description here

I tried :

self.profileHeader.frame = CGRect(x: 0, y: -20, width: profileHeader.frame.width, height: profileHeader.frame.height + 20)

But nothing changed.

Answer Source

Try using a normal UIViewController, and adjust constraints for the tableView manually check top constraint linked to view and not to top layout guide.

I hope this helps you, let me know about

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download