Skip to content

adriatikgashi/MultipleProgressBar

Repository files navigation

MultipleProgressBar - Stacked Progress Indicator

Installation

CocoaPods

CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:

$ gem install cocoapods

To integrate MultipleProgressBar into your Xcode project using CocoaPods, specify it in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '10.0'
use_frameworks!

target '<Your Target Name>' do
    pod 'MultipleProgressBar'
end

Then, run the following command:

$ pod install

Usage

import MultipleProgressBar
private lazy var multipleProgressView: MultiProgressView = {
        let view = MultiProgressView()
        return view
    }()
    
private var kUsageModels = [
    UsagesModel(color: .red, value: 110.58),
    UsagesModel(color: .green, value: 5.23),
    UsagesModel(color: .blue, value: 1.25),
    UsagesModel(color: .yellow, value: 0.58),
    UsagesModel(color: .purple, value: 0.31),
    UsagesModel(color: .lightGray, value: 32.51),
  ]
    
// Update the multiprogressBar
multipleProgressView.updateViews(usageModels: kUsageModels)

License

MultipleProgressBar is released under the MIT license. See LICENSE for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published