Skip to content

A custom progress view that lets the user easily present a progress view with masked image containing an alpha channel (i.e PNG images).

License

Notifications You must be signed in to change notification settings

fanta1ty/masked_ProgressView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

maskedProgressView

maskedProgressView

A custom progress view that lets the user easily present a progress view with masked image containing an alpha channel (i.e PNG images). The progress view can be animated, can be customized foreground and background colors during animation.

Usage

maskedProgressView can be setup by programmatically:

let maskedImage = UIImage(named: "image.png")!
let maskedProgressView = maskedProgressView(withFrame:progressViewRect, maskingImage: maskedImage)
progressView.addSubview(maskedProgressView)

maskedProgressView exposed the following methods that let the user customize color, progress and animation timing:

- func setProgress(_ progress: CGFLoat, animated: Bool)
- func setProgress(_ progress: CGFloat)
- func setBackColor(_ color: UIColor)
- func setFrontColor(_ color: UIColor)
- func setAnimationTime(_ time: CGFloat)

Demo

alt text

Requirement

'maskedProgressView' requires iOS 8.x or greater.

License

Usage is provided under the MIT License. See LICENSE for the full details.

About

A custom progress view that lets the user easily present a progress view with masked image containing an alpha channel (i.e PNG images).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages