Bartłomiej Semańczyk Bartłomiej Semańczyk - 1 year ago 95
Swift Question

SVRevealViewController does wrong offset from the top layout guide

I have simple

with menu button at the top left corner.

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
with two types of pages. First of them is my

enter image description here

Answer Source

Just use pushFrontViewController instead of setFrontViewController.

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