/GNImageProgressBar

Primary LanguageSwiftMIT LicenseMIT

GNImageProgressBar

Platform iOS Swift 5.0 compatible License: MIT

Show progress with an image.

Getting started

platform :ios, '10.0'

pod 'GNImageProgressBar'

How to use

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)