Latest 1.3.1
Homepage https://github.com/derekcoder/SwiftProgressView
License MIT
Platforms ios 10.0
Authors

Version
License
Platform

A set of progress views written in Swift.

SwiftProgressView SwiftProgressView

Requirements

  • iOS 10.0+
  • Swift 4

Installation

CocoaPods

pod 'SwiftProgressView'

Carthage

github "DerekCoder/SwiftProgressView"

Usage

Programmatically

import SwiftProgressView

let frame = CGRect(x: 100, y: 100, width: 100, height: 100)
let progressView = ProgressPieView(frame: frame)
view.addSubview(progressView)
progressView.setProgress(1.0, animated: true)

IB (storyboard)

  • Drag UIView & Set Class

    SwiftProgressView

  • Change Attributes
    SwiftProgressView

Classes & Attributes & Methods

  • ProgressRingView – The class for ring progress view
  • ProgressViewPieView – The class for pie progress view
  • progress – 0.0 ~ 1.0, readonly. Support IBInspectable
  • observedProgress – The progress object to use for updating the progress view
  • circleLineWidth – The width of outer circle. Support IBInspectable
  • circleColor – The color of outer circle. Support IBInspectable
  • progressColor – The color of inner circle. Support IBInspectable
  • animationDuration – The duration of animation. Support IBInspectable
  • progressLineWidth – The width of inner circle, only for ProgressRingView. Support IBInspectable
  • isShowPercentage – Indicate whether percentage lable is displayed or not, only for ProgressRingView. Support IBInspectable
  • percentageFontSize – The font size of percentage label, only for ProgressRingView. Support IBInspectable
  • percentageColor – The color of percentage label, only for ProgressRingView. Support IBInspectable
  • spacing – The spacing of outer and inner circle, only for ProgressPieView. Support IBInspectable
  • setProgress(_ progress: CGFloat, animated: Bool) – The method to change progress with animation or not.

Contact

License

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

Latest podspec

{
    "name": "SwiftProgressView",
    "version": "1.3.1",
    "summary": "A set of progress views written in Swift",
    "description": "SwiftProgressView is a set of progress views written in Swift. It contains ring and pie style.",
    "homepage": "https://github.com/derekcoder/SwiftProgressView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "derekcoder": "[email protected]"
    },
    "source": {
        "git": "https://github.com/derekcoder/SwiftProgressView.git",
        "tag": "1.3.1"
    },
    "platforms": {
        "ios": "10.0"
    },
    "source_files": [
        "SwiftProgressView/Sources/*.swift",
        "SwiftProgressView/SwiftProgressView.h"
    ],
    "pod_target_xcconfig": {
        "SWIFT_VERSION": "4.0"
    }
}

Pin It on Pinterest

Share This