Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lourenco-marinho/ActionButton
Action button is a Floating Action Button inspired from Google Inbox implemented in Swift
https://github.com/lourenco-marinho/ActionButton
Last synced: about 2 months ago
JSON representation
Action button is a Floating Action Button inspired from Google Inbox implemented in Swift
- Host: GitHub
- URL: https://github.com/lourenco-marinho/ActionButton
- Owner: lourenco-marinho
- License: mit
- Created: 2015-05-26T00:53:26.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-05-26T15:36:49.000Z (over 3 years ago)
- Last Synced: 2024-07-18T05:27:04.052Z (2 months ago)
- Language: Swift
- Size: 556 KB
- Stars: 237
- Watchers: 12
- Forks: 69
- Open Issues: 27
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![Action Button](Action Button.png)
[![CocoaPods Compatible](https://img.shields.io/cocoapods/v/ActionButton.svg)](https://img.shields.io/cocoapods/v/ActionButton.svg)
Action button is a Floating Action Button inspired from Google Inbox implemented in Swift
Import
--
You can use [CocoaPods](https://cocoapods.org/) 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
```swift
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
```swift
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
--
- [Lourenço Marinho](http://github.com/lourenco-marinho) ([@lopima](https://twitter.com/lopima))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.