GNImageProgressBar
用图像显示进度。
开始使用
platform :ios, '10.0'
pod 'GNImageProgressBar'
如何使用
您可以查看示例项目(ExampleViewController)以了解简单用法。
目前仅支持一种填充方向
let imageProgressBar = GNImageProgressBar(image: myImage, size: desiredSize, backgroundImageAlpha: myAlpha, shouldShowBackgroundImage: true, fillDirection: .fromBottom, progress: 0.3)
或者直接
let imageProgressBar = GNImageProgressBar(image: myImage, size: desiredSize, fillDirection: .fromBottom)
// view.addSubview(imageProgressBar)
// setup constraints or frame
imageProgressBar.setProgress(progress, animated: true)