Nata Mio
Nata Mio

Reputation: 2226

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

Upvotes: 5

Views: 952

Answers (1)

Nata Mio
Nata Mio

Reputation: 2226

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

_rearViewRevealOverdraw = 40.0f;

to :

_rearViewRevealOverdraw = 0.0f;

Upvotes: 15

Related Questions