3

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.

NST
  • 115
  • 10

1 Answers1

1

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

Reinier Melian
  • 20,519
  • 3
  • 38
  • 55