Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 1.14 KB

README.md

File metadata and controls

30 lines (21 loc) · 1.14 KB

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.