Skip to content

matteogobbi/MGFashionMenuView

Repository files navigation

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.

About

View with an awesome animation when it is shown/hidden

Resources

License

Stars

Watchers

Forks

Packages

No packages published