Skip to content

About

No description, website, or topics provided.

Resources

Stars

3 stars

Watchers

6 watching

Forks

Latest commit

 

History

48 Commits

Folders and files

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

Stars

3 stars

Watchers

6 watching

Forks

Releases

Packages

Contributors

Languages