Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable SWRevealViewController bouncing on addGestureRecognizer

I'm trying to use SWRevealViewController in my app which is sliding menu library, but i needed to edit the library with one option and i will explain as follows. when using addgestureRecognizer and opening the sliding-menu by keep on holding from the left to the most right and then left it,it bounce too much outside to the right then close the menu. i just need to disable this option from the library, just like to open to its normal limit without bouncing.

The link on GitHub is here : https://github.com/John-Lluch/SWRevealViewController

like image 655
Nata Mio Avatar asked Jun 27 '15 21:06

Nata Mio


1 Answers

Go to Line 648 in SWRevealViewController.m and change it from :

_rearViewRevealOverdraw = 40.0f;

to :

_rearViewRevealOverdraw = 0.0f;
like image 167
Nata Mio Avatar answered Oct 05 '22 01:10

Nata Mio