Material Design Floating Action Button:LiquidFloatingActionButton
LiquidFloatingActionButton is floating action button component of material design in liquid state, inspired by Material In a Liquid State.
Features
- liquid animation
- easily custoizable
- Objective-C compatible
You can play a demo with appetize.io
Usage
You just need implementLiquidFloatingActionButtonDataSourceandLiquidFloatingActionButtonDelegatesimilar 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
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 yourCarthagefile.
github "yoavlt/LiquidFloatingActionButton"
本文由用戶 ygp8 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!