GithubHelp home page GithubHelp logo

marlontojal / dwbubblemenubutton Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dwalker39/dwbubblemenubutton

0.0 2.0 0.0 109 KB

A delightful and simple animation class for expanding and collapsing a variable sized menu

License: MIT License

Ruby 3.28% Objective-C 96.72%

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 fnxpt avatar

Watchers

James Cloos avatar  avatar

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.