Latest 0.4
Homepage https://github.com/talthent/TCProgressBar
License MIT
Platforms ios 9.0, requires ARC
Authors

Simple and clean progress bar.

Demo

alt text

Installation

Cocoapods

Install Cocoapods

$ gem install cocoapods

Add TCProgressBar in your Podfile.

use_frameworks!

pod 'TCProgressBar'

Install the pod

$ pod install

Manually

Copy TCProgressBar folder to your project. Enjoy.

Usage

Interface Builder

  • Drag a UIView to you view, and change its class to TCProgressBar
    alt text

  • Click Attributes Inspector alt text
    and notice the new Progress Bar section on top

    alt text

Changes the values as you want and notice TCProgressBar dynamically changes.

Code

  • Create a new TCProgressBar
    let progressBar = TCProgressBar(frame: CGRect(x: 0,
                                              y: 0,
                                              width: 200,
                                              height: 20))
  • Set the values as you like

    progressBar.outlineColor = .black
    progressBar.outlineWidth = 2 
    progressBar.spacing = 4
    progressBar.progressColor = .darkGray
    progressBar.backgroundColor = .lightGray
    progressBar.value = 0.7
    • Add TCProgressBar to the view
      self.view.addSubview(progressBar)

    That’s it!

LICENSE

TCProgressBar is available under the MIT license. See the LICENSE file for details.

Latest podspec

{
    "name": "TCProgressBar",
    "platforms": {
        "ios": "9.0"
    },
    "summary": "Simple and clean progress bar.",
    "requires_arc": true,
    "version": "0.4",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Tal Cohen": "[email protected]"
    },
    "homepage": "https://github.com/talthent/TCProgressBar",
    "source": {
        "git": "https://github.com/talthent/TCProgressBar.git",
        "tag": "0.4"
    },
    "source_files": "TCProgressBar/*.{swift}",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This