Update README.md
The VHProgressBar is vertical and horizontal animated progress bar.
Add this code to your Podfile
Podfile
pod 'VHProgressBar', '~> 1.0'
Install into your project:
$ pod install
//import UIKit and VHProgressBar import UIKit import VHProgressBar // vertical progress bar let verticalProgressBar = VerticalProgressBar() // horizontal progress bar let horizontalProgressBar = HorizontalProgressBar() self.view.addSubview(verticalProgressBar) self.view.addSubview(horizontalProgressBar) //adjust layout verticalProgressBar.pgHeight = 350 verticalProgressBar.pgWidth = 35 verticalProgressBar.frameBold = 0.5 horizontalProgressBar.pgHeight = 50 horizontalProgressBar.pgWidth = 500 horizontalProgressBar.frameBold = 1.0 // start simple animation verticalProgressBar.animateProgress(duration: 2.0, progressValue: 0.7) horizontalProgressBar.animateProgress(duration: 3.0, progressValue: 0.2) // start repeat animation // you can choose type "normal" or "reverse" verticalProgressBar.startAnimation(type: "normal", duration: 3.0) //stop repeat animation verticalProgressBar.stopAnimation()
drop a UIView into your viewController in your storyboard, and set class to VerticalProgressBar or HorizontalProgressBar
VerticalProgressBar
HorizontalProgressBar
customize your progressbar by setting the properties from the Interface Builder.
Contributions are welcomed!!
1.0
Sohei Miyakura(miyass)
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
VHProgressBar
The VHProgressBar is vertical and horizontal animated progress bar.
Installation
Cocoapods:
Add this code to your
Podfile
Install into your project:
Usage
By coding with swift
By using storyboard
drop a UIView into your viewController in your storyboard, and set class to
VerticalProgressBar
orHorizontalProgressBar
customize your progressbar by setting the properties from the Interface Builder.
Supported Attributes
Contributions
Contributions are welcomed!!
Version
1.0
Author
Sohei Miyakura(miyass)