Skip to content

TeletronicsDotAe/FloatingActionButton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FloatingActionButton

FloatingActionButton is floating action button component of material design, inspired by Material In a Liquid State. Adapted from (https://github.com/yoavlt/LiquidFloatingActionButton) by Takuma Yoshida

Features

  • Material design animation
  • easily customizable
  • Objective-C compatible

Usage

You just need implement FloatingActionButtonDataSource and FloatingActionButtonDelegate similar to well-known UIKit design.

let floatingActionButton = FloatingActionButton(frame: floatingFrame)
floatingActionButton.dataSource = self
floatingActionButton.delegate = self

FloatingActionButtonDataSource

  • func numberOfCells(floatingActionButton: FloatingActionButton) -> Int
  • func cellForIndex(index: Int) -> FloatingCell

FloatingActionButtonDelegate

  • optional func dloatingActionButton(floatingActionButton: FloatingActionButton, didSelectItemAtIndex index: Int)

License

FloatingActionButton is available under the MIT license. See the LICENSE file for more info.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •