Coder Social home page Coder Social logo

ivan-avalos / actionbutton Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lourenco-marinho/actionbutton

0.0 2.0 0.0 568 KB

Action button is a Floating Action Button inspired from Google Inbox implemented in Swift

License: MIT License

Ruby 5.26% Swift 94.74%

actionbutton's Introduction

![Action Button](Action Button.png)

CocoaPods Compatible

Action button is a Floating Action Button inspired from Google Inbox implemented in Swift

Import

You can use CocoaPods to integrate Action Button in your project. You can install it with the following command

$ gem install cocoapods

Update your Podfile to use Action Button

pod 'ActionButton'

Then, run the following command

$ pod install

Requirements

  • iOS 8.0+

Usage

Define your actions

let share = ActionButtonItem(title: "share", image: shareImage)
share.action = { item in println("Sharing...") }

let email = ActionButtonItem(title: "email", image: emailImage)
email.action = { item in println("Email...") }

Create a Action Button with your actions

actionButton = ActionButton(attachedToView: view, items: [share, email])
actionButton.action = { button in button.toggleMenu() }

Enjoy

![Action Button](Action Button Sample.gif)

Give it a try

You can try Action Button with CocoaPods

$ pod try ActionButton

Who to blame

More

Action Button is a working in progress so feel free to fork this project and improve it!

License

Action Button is released under the MIT license. See LICENSE for details.

actionbutton's People

Contributors

anukhov avatar ivan-avalos avatar jkates1 avatar lourenco-marinho avatar readmecritic avatar

Watchers

 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.