LiquidFloatingActionButtonhtml
https://github.com/yoavlt/LiquidFloatingActionButtongit
LiquidFloatingActionButton is floating action button component of material design in liquid state, inspired by Material In a Liquid State. This is also spinner loader components in liquid state.github
LiquidFloatingActionButton是一个具备液体效果的浮动按钮组件,符合 material design 设计规范,灵感来自于 Material In a Liquid State 。你也能够将其用做加载信息。swift
Featuresruby
You can play a demo with appetize.ioapp
你能够尝试一下demo。iphone
You just need implement LiquidFloatingActionButtonDataSource
and LiquidFloatingActionButtonDelegate
similar to well-known UIKit design.动画
你只须要实现 LiquidFloatingActionButtonDataSource 以及 LiquidFloatingActionButtonDelegate 便可。ui
let floatingActionButton = LiquidFloatingActionButton(frame: floatingFrame) floatingActionButton.dataSource = self floatingActionButton.delegate = self
LiquidFloatingActionButtonDataSource
LiquidFloatingActionButtonDelegate
Installation
LiquidFloatingActionButton is available through CocoaPods. To install it, simply add the following line to your Podfile:
你能够经过 CocoaPods 安装 LiquidFloatingActionButton。在Podfile中写入下面一句话便可:
pod "LiquidFloatingActionButton"
or, if you use Carthage, add the following line to your Carthage
file.
或者,若是你在用 Carthage ,你在 Carthage 文件中写入一下一句话:
github "yoavlt/LiquidFloatingActionButton"
Please use swift-2.0
branch if you adopt latest Xcode.
若是想在最新的 Xcode 上使用,请用 swift-2.0。
LiquidFloatingActionButton is available under the MIT license. See the LICENSE file for more info.