Skip to content

Latest commit

 

History

History
50 lines (34 loc) · 1.39 KB

README.md

File metadata and controls

50 lines (34 loc) · 1.39 KB

MGFashionMenuView

MGFashionMenuView is a view with an awesome animation when it is shown/hidden. It is useful to present a menu, a notification or an action button.

Info

This code must be used under ARC. If your code doesn't use ARC you can mark this source with the compiler flag -fobjc-arc

Example Usage

In the package is included the project to test the object. This is an easy example to init and use the control:

    //Init the control
    MGFashionMenuView *menuView = [[MGFashionMenuView alloc] initWithMenuView:myViewToPresent andAnimationType:MGAnimationTypeWave];
    [self.view addSubview:menuView];
    
    //Show/hide menu
    [menuView show];
    [menuView hide];

Useful properties:

    //Access to property to know if the control is shown or not
    [menuView isShown];
    
    //Access to property to know if the control is performing the animation or not
    [menuView isAnimating];

Contact

Matteo Gobbi

License

MGFashionMenuView is available under the MIT license.