John-Lluch / SWRevealViewController

A UIViewController subclass for presenting side view controllers inspired on the FaceBook and Wunderlist apps, done right !
Other
4.52k stars 987 forks source link

SVRevealViewController does wrong offset from the top layout guide. #595

Open kunass2 opened 8 years ago

kunass2 commented 8 years ago

I have simple SearchViewController with menu button at the top left corner.

Using SVRevealViewController I automatically setup front view controller.

enter image description here

It works and looks like this:

enter image description here

but later on action from this controller I load this controller once again using sth like this:

revealViewController().setFrontViewController(UIStoryboard(name: "Search", bundle: nil).instantiateInitialViewController(), animated: true)

and then it looks like following:

enter image description here

and this is wrong. Why it happens like that?

My Search.storyboard is a PageViewController with two types of pages. First of them is my SearchViewController:

enter image description here

iDevelopper commented 8 years ago

555 should help you

kunass2 commented 8 years ago

Ok, I have tried almost everything, but still the same. Could you look at this? I have UINavigationBars there linked to the top layout guide = 0. Nothing changes when I link this to the superview.