Coder Social home page Coder Social logo

dwbubblemenubutton's Introduction

DWBubbleMenuButton

DWBubbleMenuButton is a simple animation class for expanding and collapsing a variable sized menu.

Project allows for expanding menus in left, right, up, and down directions. Using the class is as simple as setting your home button and adding an array of menu buttons.

CocoaPods

pod 'DWBubbleMenuButton', '~> 1.0.1'

Usage

Create a home button

    UIButton *menuButton = [UIButton buttonWithType:UIButtonTypeSystem];

    [menuButton setTitle:@"Menu" forState:UIControlStateNormal];

Create an instance of DWBubbleMenuButton

    DWBubbleMenuButton *bubbleMenuButton = [[DWBubbleMenuButton alloc] initWithFrame:CGRectMake(20.f,
                                                                                                20.f,
                                                                                                100.f,
                                                                                                100.f)
                                                                  expansionDirection:DirectionDown];
    bubbleMenuButton.homeButtonView = menuButton;

Add buttons to your bubble menu

    [bubbleMenuButton addButtons:@[/* your buttons */]];
    
    /* OR */
    
    [bubbleMenuButton addButton:/* your button */];

DWBubbleMenuButton will automatically handle the animation, frame changes, and showing your menu buttons in the proper order

dwbubblemenubutton's People

Contributors

dwalker39 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dwbubblemenubutton's Issues

Rotation

It would be possible to improve the code because the button in the lower right corner is not properly adjusted after rotation

button with left label

hi, have you any idea for put an label together the button.. for example

-(HOME BUTTON)-
user(label) (BUTTON 1)
options(label) (BUTTON 2)

thanks :)

Is not usable with AutoLayout

I init the bubble menu with a zero rect and add some constraints to it. But _finishCollapse sets the frame to zero rect again.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.