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
GrowLine