lilei644 / LLSlideMenu

This is a spring slide menu for iOS apps - 一个弹性侧滑菜单
MIT License
591 stars 93 forks source link

Can it slide in from left? #11

Closed tonymuu closed 7 years ago

tonymuu commented 7 years ago

Could you please make so it supports sliding in from left? Thanks

rixjafri commented 7 years ago

Yes you can ... find the following function

and replace the following code

if (_slideMenu.ll_isOpen) { return; }

with this

if (_slideMenu.ll_isOpen) { [_slideMenu ll_closeSlideMenu]; return; }

tonymuu commented 7 years ago

Great! I'll test it as soon as possible and will let you know :)

rixjafri commented 7 years ago

yeah sure :)

tonymuu commented 7 years ago

Hi, my bad! I think it defaults sliding in from the left, but how do I make it slide in from the right side? Thanks.

lilei644 commented 7 years ago

Sorry, the current version does not support the slide from the right, if you want to, you can modify the direction of the LLDisplayLayer drawing and coordinate positions, as well as touch gestures listening :)

tonymuu commented 7 years ago

If I want to contribute to this repo, do I create a fork and then do all the changes locally, and then create a pull request?

lilei644 commented 7 years ago

Yes, of course! :)

tonymuu commented 7 years ago

Great! I'll try to start working on it asap :)