Latest 1.0.2
Homepage https://github.com/miyass/VHProgressBar
License MIT Copyright (c) 2018 Sohei Miyakura
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Platforms ios 10.0
Authors

The VHProgressBar is vertical and horizontal animated progress bar.

progressTest1
progressTest2

Installation

Cocoapods:

Add this code to your Podfile

pod 'VHProgressBar', '~> 1.0'

Install into your project:

$ pod install

Usage

By coding with swift

//import UIKit and VHProgressBar
import UIKit
import VHProgressBar

 // vertical progress bar
var verticalProgressBar: VerticalProgressBar!
// horizontal progress bar
var horizontalProgressBar: HorizontalProgressBar!

// 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()

By using storyboard

drop a UIView into your viewController in your storyboard, and set class to VerticalProgressBar or HorizontalProgressBar

storyboard1

customize your progressbar by setting the properties from the Interface Builder.

storyboard2

Supported Attributes

Attribute Description
Bg Color progress bar background color
Bar Color progress bar color
Frame Color the border color
Frame Bold The border width
Pg Height progress bar height
Pg Width progress bar width

Contributions

Contributions are welcomed!!

Version

1.0

Author

Sohei Miyakura(miyass)

Latest podspec

{
    "name": "VHProgressBar",
    "version": "1.0.2",
    "summary": "Vartical and Horizontal ProgressBar",
    "homepage": "https://github.com/miyass/VHProgressBar",
    "social_media_url": "https://github.com/miyass/VHProgressBar",
    "authors": {
        "Sohei Miyakura": "[email protected]"
    },
    "source": {
        "git": "https://github.com/miyass/VHProgressBar.git",
        "tag": "1.0.2"
    },
    "platforms": {
        "ios": "10.0"
    },
    "source_files": "Sources/VHProgressBar/*.swift",
    "license": {
        "type": "MIT",
        "text": "      Copyright (c) 2018 Sohei Miyakuran      Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:n      The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.n      THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.n"
    }
}

Pin It on Pinterest

Share This