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
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;
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
The width is controlled by the rearViewRevealWidth
on your SWRevealViewController
.
For example:
revealViewController = SWRevealViewController(rearViewController: myRearViewController,
frontViewController: myFrontViewController)
revealViewController.rearViewRevealWidth = myWidth
where the width is a CGFloat
.
From the documentation for the rearViewRevealWidth property:
Defines how much of the rear or right view is shown, default is 260. Negative values indicate that the reveal width should be computed by substracting the full front view width, so the revealed frontView width is kept constant when bounds change as opposed to the rear or right width.