Show progress with an image.
platform :ios, '10.0'
pod 'GNImageProgressBar'
You can have a look at the demo project for a simple use case (ExampleViewController).
Currently, only one fill direction is supported:
let imageProgressBar = GNImageProgressBar(image: myImage, size: desiredSize, backgroundImageAlpha: myAlpha, shouldShowBackgroundImage: true, fillDirection: .fromBottom, progress: 0.3)
or with bg image
let imageProgressBar = GNImageProgressBar(image: myImage, size: desiredSize, backgroundImage: bgImage, backgroundImageAlpha: myAlpha, shouldShowBackgroundImage: true, fillDirection: .fromBottom, progress: 0.3)
or just
let imageProgressBar = GNImageProgressBar(image: myImage, size: desiredSize, fillDirection: .fromBottom)
// view.addSubview(imageProgressBar)
// setup constraints or frame
imageProgressBar.setProgress(progress, animated: true)