Teezanateep Wongprapai Teezanateep Wongprapai - 1 year ago 215
Swift Question

How to set space of sw_rear and right Edge SWRevealViewController

Clink to see image MY sw_rear

When running

Clink to see image Space is 1/3 of display

but i want set space is 5/6 of display

Answer Source

you can change the width like use property of rearViewRevealWidth in SWL

// so the revealed frontView width is kept constant when bounds change as opposed to the rear or right width.

@property (nonatomic) CGFloat rearViewRevealWidth;


revealViewController.rearViewRevealWidth=self.view.frame.size.width-100.0f; //customize the width/space


revealViewController!.rearViewRevealWidth=self.view.frame.size.width-100 //customize the width/space
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download