Skip to content

AidanHanda/LiquidFloatingActionButton

 
 

Repository files navigation

LiquidFloatingActionButton

CI Status Version License Platform [Carthage compatible] (https://github.com/Carthage/Carthage)

LiquidFloatingActionButton is floating action button component of material design in liquid state, inspired by Material In a Liquid State.

Demo

Features

  • liquid animation
  • easily custoizable
  • Objective-C complatible

You can play a demo with appetize.io

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)

Easily customizable

Demo

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"

License

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

About

Material Design Floating Action Button in liquid state

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 66.4%
  • Shell 27.6%
  • Ruby 3.9%
  • Objective-C 2.1%