FloatingActionButton 2.0

FloatingActionButton 2.0

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Jan 2018
SwiftSwift Version 4.0
SPMSupports SPM

Maintained by Martin Rehder.



  • By
  • Martin Jacob Rehder

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

  • [x] Material design animation
  • [x] easily customizable
  • [x] 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.