Teezanateep Wongprapai Teezanateep Wongprapai - 5 months ago 82
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

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;

Objective-C

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

Swift

revealViewController!.rearViewRevealWidth=self.view.frame.size.width-100 //customize the width/space
Comments