Material Design Floating Action Button in liquid state

LiquidFloatingActionButton


LiquidFloatingActionButton is floating action button component of material design in liquid state, inspired by Material In a Liquid StateThis is also spinner loader components in liquid state.

 

  • language: Swift
  • platform: ios
  • device: iphone/ipad
  • license: MIT

Tag

Download

Features

Usage

You just need implement LiquidFloatingActionButtonDataSource and LiquidFloatingActionButtonDelegate similar to well-known UIKit design.

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


LiquidFloatingActionButtonDataSource


func numberOfCells(liquidFloatingActionButton: LiquidFloatingActionButton) -> Int
func cellForIndex(index: Int) -> LiquidFloatingCell


LiquidFloatingActionButtonDelegate


optional func liquidFloatingActionButton(liquidFloatingActionButton: LiquidFloatingActionButton, didSelectItemAtIndex index: Int)

Installation


LiquidFloatingActionButton is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "LiquidFloatingActionButton"
or, if you use Carthage, add the following line to your Carthage file.
github "yoavlt/LiquidFloatingActionButton"

Related Posts

One thought on “Material Design Floating Action Button in liquid state

Leave a Reply

Your email address will not be published. Required fields are marked *