iOS 加载动画:LiquidLoader

jopen 9年前

LiquidLoader 是 spinner 加载 UI 控件,带有液体动画效果。

Usage

let loader = LiquidLoader(frame: loaderFrame, effect: .GrowCircle(circleColor))  view.addSubview(loader)

Show/Hide

You can show and hide a loader.

loader.show()  loader.hide()

Effect Type

You can use the following effects.

  • .GrowCircle
  • .GrowLine
  • .Circle
  • .Line

If you want to avoid grow effects, you should use.Circleor.Line.

GrowCircle

iOS 加载动画:LiquidLoader

GrowLine

iOS 加载动画:LiquidLoader

项目主页:http://www.open-open.com/lib/view/home/1441787312711