Teezanateep Wongprapai Teezanateep Wongprapai - 10 months ago 146
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


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