Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

in localization sideMenu keeps viewing from both sides crashing the app #808

Open
TamerEzzat opened this issue Feb 21, 2019 · 3 comments
Open

Comments

@TamerEzzat
Copy link

I used localization in my app to support arabic and english , so I'm checking in my code if the language is arabic then setting the right and rear ,if english setting the right and rear also , so in english when I swipe from right it come with part of main view and crach , the same thing in arabic when swipe from left , I commented the line of pan gesture now to only open from button but I want to solve this

@iDevelopper
Copy link

Check #676

@TamerEzzat
Copy link
Author

My problem is I'm Using only one button, and the view is changing in the localizer file , it works fine after changing language but when swiping opposite to language allignment it opens another sidemenu but with copy of the home screen so it enters loop and crash

@iDevelopper
Copy link

Use:

// Implement this to return NO when you want the pan gesture recognizer to be ignored
- (BOOL)revealControllerPanGestureShouldBegin:(SWRevealViewController *)revealController;

Return NO if the direction of the gesture (velocityInView.x) is not the good one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants