diff --git a/CHANGELOG.md b/CHANGELOG.md index 7eba04a7..f18cea1e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +# Version 1.3.0 + +- Add a property for accessing the current value of the progress ring while animating, closes [issue #14](https://github.com/luispadron/UICircularProgressRing/issues/14) +- Add fix for removing a currently running animation when calling `setProgress(:)` while ring is animating, closes [issue #19](https://github.com/luispadron/UICircularProgressRing/issues/19) +- Fixed access levels for variables and functions, changed from `public` to `open` to allow subclassing. +- Updated `docs` by running Jazzy + + # Version 1.2.2 - Remove useless print statements from guards diff --git a/UICircularProgressRing.podspec b/UICircularProgressRing.podspec index be1a0433..b22c530a 100644 --- a/UICircularProgressRing.podspec +++ b/UICircularProgressRing.podspec @@ -2,7 +2,7 @@ Pod::Spec.new do |s| s.name = "UICircularProgressRing" - s.version = "1.2.2" + s.version = "1.3.0" s.summary = "A highly customizable circular progress bar for iOS written in Swift 3" s.description = <<-DESC diff --git a/UICircularProgressRing/UICircularProgressRingView.swift b/UICircularProgressRing/UICircularProgressRingView.swift index 5a2ff29a..3cb086a3 100644 --- a/UICircularProgressRing/UICircularProgressRingView.swift +++ b/UICircularProgressRing/UICircularProgressRingView.swift @@ -56,7 +56,7 @@ import UIKit ## Author: Luis Padron */ - public weak var delegate: UICircularProgressRingDelegate? + open weak var delegate: UICircularProgressRingDelegate? // MARK: Value Properties @@ -66,18 +66,39 @@ import UIKit ## Important ## Default = 0 + This cannot be used to get the value while the ring is animating, to get current value while animating use `currentValue` + The current value of the progress ring, use setProgress(value:) to alter the value with the option to animate and have a completion handler. ## Author: Luis Padron */ - @IBInspectable public var value: CGFloat = 0 { + @IBInspectable open var value: CGFloat = 0 { didSet { self.ringLayer.value = self.value } } + /** + The current value of the progress ring + + This will return the current value of the progress ring, if the ring is animating it will be updated in real time. + If the ring is not currently animating then the value returned will be the `value` property of the ring + + ## Author: + Luis Padron + */ + open var currentValue: CGFloat? { + get { + if isAnimating { + return self.layer.presentation()?.value(forKey: "value") as? CGFloat + } else { + return self.value + } + } + } + /** The max value for the progress ring. ex: 23/(100) Used to calculate amount of progress depending on self.value and self.maxValue @@ -89,7 +110,7 @@ import UIKit ## Author: Luis Padron */ - @IBInspectable public var maxValue: CGFloat = 100 { + @IBInspectable open var maxValue: CGFloat = 100 { didSet { self.ringLayer.maxValue = self.maxValue } @@ -116,7 +137,7 @@ import UIKit ## Author: Luis Padron */ - @IBInspectable public var viewStyle: Int = 1 { + @IBInspectable open var viewStyle: Int = 1 { didSet { self.ringLayer.viewStyle = self.viewStyle } @@ -131,7 +152,7 @@ import UIKit ## Author: Luis Padron */ - public var patternForDashes: [CGFloat] = [7.0, 7.0] { + open var patternForDashes: [CGFloat] = [7.0, 7.0] { didSet { self.ringLayer.patternForDashes = self.patternForDashes } @@ -151,7 +172,7 @@ import UIKit ## Author: Luis Padron */ - @IBInspectable public var startAngle: CGFloat = 0 { + @IBInspectable open var startAngle: CGFloat = 0 { didSet { self.ringLayer.startAngle = self.startAngle } @@ -171,7 +192,7 @@ import UIKit ## Author: Luis Padron */ - @IBInspectable public var endAngle: CGFloat = 360 { + @IBInspectable open var endAngle: CGFloat = 360 { didSet { self.ringLayer.endAngle = self.endAngle } @@ -188,7 +209,7 @@ import UIKit ## Author: Luis Padron */ - @IBInspectable public var outerRingWidth: CGFloat = 10.0 { + @IBInspectable open var outerRingWidth: CGFloat = 10.0 { didSet { self.ringLayer.outerRingWidth = self.outerRingWidth } @@ -203,7 +224,7 @@ import UIKit ## Author: Luis Padron */ - @IBInspectable public var outerRingColor: UIColor = UIColor.gray { + @IBInspectable open var outerRingColor: UIColor = UIColor.gray { didSet { self.ringLayer.outerRingColor = self.outerRingColor } @@ -223,7 +244,7 @@ import UIKit ## Author: Luis Padron */ - @IBInspectable public var outerRingCapStyle: Int = 1 { + @IBInspectable open var outerRingCapStyle: Int = 1 { didSet { switch self.outerRingCapStyle{ case 1: @@ -263,7 +284,7 @@ import UIKit ## Author: Luis Padron */ - @IBInspectable public var innerRingWidth: CGFloat = 5.0 { + @IBInspectable open var innerRingWidth: CGFloat = 5.0 { didSet { self.ringLayer.innerRingWidth = self.innerRingWidth } @@ -278,7 +299,7 @@ import UIKit ## Author: Luis Padron */ - @IBInspectable public var innerRingColor: UIColor = UIColor.blue { + @IBInspectable open var innerRingColor: UIColor = UIColor.blue { didSet { self.ringLayer.innerRingColor = self.innerRingColor } @@ -295,7 +316,7 @@ import UIKit ## Author: Luis Padron */ - @IBInspectable public var innerRingSpacing: CGFloat = 1 { + @IBInspectable open var innerRingSpacing: CGFloat = 1 { didSet { self.ringLayer.innerRingSpacing = self.innerRingSpacing } @@ -319,7 +340,7 @@ import UIKit ## Author: Luis Padron */ - @IBInspectable public var innerRingCapStyle: Int = 2 { + @IBInspectable open var innerRingCapStyle: Int = 2 { didSet { switch self.innerRingCapStyle { case 1: @@ -361,7 +382,7 @@ import UIKit ## Author: Luis Padron */ - @IBInspectable public var shouldShowValueText: Bool = true { + @IBInspectable open var shouldShowValueText: Bool = true { didSet { self.ringLayer.shouldShowValueText = self.shouldShowValueText } @@ -377,7 +398,7 @@ import UIKit ## Author: Luis Padron */ - @IBInspectable public var fontColor: UIColor = UIColor.black { + @IBInspectable open var fontColor: UIColor = UIColor.black { didSet { self.ringLayer.fontColor = self.fontColor } @@ -394,7 +415,7 @@ import UIKit ## Author: Luis Padron */ - @IBInspectable public var fontSize: CGFloat = 18 { + @IBInspectable open var fontSize: CGFloat = 18 { didSet { self.ringLayer.fontSize = self.fontSize } @@ -413,7 +434,7 @@ import UIKit ## Author: Luis Padron */ - @IBInspectable public var customFontWithName: String? { + @IBInspectable open var customFontWithName: String? { didSet { self.ringLayer.customFontWithName = self.customFontWithName } @@ -430,7 +451,7 @@ import UIKit ## Author: Luis Padron */ - @IBInspectable public var valueIndicator: String = "%" { + @IBInspectable open var valueIndicator: String = "%" { didSet { self.ringLayer.valueIndicator = self.valueIndicator } @@ -448,7 +469,7 @@ import UIKit ## Author: Luis Padron */ - @IBInspectable public var showFloatingPoint: Bool = false { + @IBInspectable open var showFloatingPoint: Bool = false { didSet { self.ringLayer.showFloatingPoint = self.showFloatingPoint } @@ -465,7 +486,7 @@ import UIKit ## Author: Luis Padron */ - @IBInspectable public var decimalPlaces: Int = 2 { + @IBInspectable open var decimalPlaces: Int = 2 { didSet { self.ringLayer.decimalPlaces = self.decimalPlaces } @@ -486,7 +507,7 @@ import UIKit ## Author: Luis Padron */ - public var animationStyle: String = kCAMediaTimingFunctionEaseIn { + open var animationStyle: String = kCAMediaTimingFunctionEaseIn { didSet { self.ringLayer.animationStyle = self.animationStyle } @@ -501,7 +522,7 @@ import UIKit ## Author: Luis Padron */ - public var isAnimating: Bool { + open var isAnimating: Bool { get { return (self.layer.animation(forKey: "value") != nil) ? true : false } } @@ -510,7 +531,7 @@ import UIKit /** Set the ring layer to the default layer, cated as custom layer */ - var ringLayer: UICircularProgressRingLayer { + internal var ringLayer: UICircularProgressRingLayer { return self.layer as! UICircularProgressRingLayer } @@ -592,20 +613,22 @@ import UIKit public typealias ProgressCompletion = (() -> Void) /** - Sets the current value for the progress ring + Sets the current value for the progress ring, calling this method while ring is animating will cancel the previously set animation and start a new one. - Parameter newVal: The value to be set for the progress ring - Parameter animationDuration: The time interval duration for the animation - Parameter completion: The completion closure block that will be called when animtion is finished (also called when animationDuration = 0), default is nil ## Important ## - Animatin duration = 0 will cause no animation to occur + Animatin duration = 0 will cause no animation to occur, and value will instantly be set ## Author: Luis Padron */ - public func setProgress(value: CGFloat, animationDuration: TimeInterval, completion: ProgressCompletion? = nil) { - // Only animte if duration sent is greater than zero + open func setProgress(value: CGFloat, animationDuration: TimeInterval, completion: ProgressCompletion? = nil) { + // Remove the current animation, so that new can be processed + if isAnimating { self.layer.removeAnimation(forKey: "value") } + // Only animate if duration sent is greater than zero self.ringLayer.animated = animationDuration > 0 self.ringLayer.animationDuration = animationDuration // Create a transaction to be notified when animation is complete diff --git a/docs/Classes.html b/docs/Classes.html index 68b56216..7ff016f2 100644 --- a/docs/Classes.html +++ b/docs/Classes.html @@ -123,7 +123,7 @@

Declaration

diff --git a/docs/Classes/UICircularProgressRingView.html b/docs/Classes/UICircularProgressRingView.html index 7f0c7efa..d9718610 100644 --- a/docs/Classes/UICircularProgressRingView.html +++ b/docs/Classes/UICircularProgressRingView.html @@ -159,7 +159,7 @@

Declaration

Declaration

Swift

-
public weak var delegate: UICircularProgressRingDelegate?
+
open weak var delegate: UICircularProgressRingDelegate?
@@ -196,6 +196,8 @@

Value Properties

Default = 0

+

This cannot be used to get the value while the ring is animating, to get current value while animating use currentValue

+

The current value of the progress ring, use setProgress(value:) to alter the value with the option to animate and have a completion handler.

@@ -208,7 +210,41 @@

Value Properties

Declaration

Swift

-
@IBInspectable public var value: CGFloat = 0
+
@IBInspectable open var value: CGFloat = 0
+ +
+ + + + +
  • +
    + + + + currentValue + +
    +
    +
    +
    +
    +
    +

    The current value of the progress ring

    + +

    This will return the current value of the progress ring, if the ring is animating it will be updated in real time. +If the ring is not currently animating then the value returned will be the value property of the ring

    + +

    Author:

    + +

    Luis Padron

    + +
    +
    +

    Declaration

    +
    +

    Swift

    +
    open var currentValue: CGFloat?
    @@ -244,7 +280,7 @@

    Declaration

    Declaration

    Swift

    -
    @IBInspectable public var maxValue: CGFloat = 100
    +
    @IBInspectable open var maxValue: CGFloat = 100
    @@ -301,7 +337,7 @@

    View Style

    Declaration

    Swift

    -
    @IBInspectable public var viewStyle: Int = 1
    +
    @IBInspectable open var viewStyle: Int = 1
    @@ -336,7 +372,7 @@

    Declaration

    Declaration

    Swift

    -
    public var patternForDashes: [CGFloat] = [7.0, 7.0]
    +
    open var patternForDashes: [CGFloat] = [7.0, 7.0]
    @@ -376,7 +412,7 @@

    Declaration

    Declaration

    Swift

    -
    @IBInspectable public var startAngle: CGFloat = 0
    +
    @IBInspectable open var startAngle: CGFloat = 0
    @@ -416,7 +452,7 @@

    Declaration

    Declaration

    Swift

    -
    @IBInspectable public var endAngle: CGFloat = 360
    +
    @IBInspectable open var endAngle: CGFloat = 360
    @@ -462,7 +498,7 @@

    Outer Ring properties

    Declaration

    Swift

    -
    @IBInspectable public var outerRingWidth: CGFloat = 10.0
    +
    @IBInspectable open var outerRingWidth: CGFloat = 10.0
    @@ -497,7 +533,7 @@

    Declaration

    Declaration

    Swift

    -
    @IBInspectable public var outerRingColor: UIColor = UIColor.gray
    +
    @IBInspectable open var outerRingColor: UIColor = UIColor.gray
    @@ -537,7 +573,7 @@

    Declaration

    Declaration

    Swift

    -
    @IBInspectable public var outerRingCapStyle: Int = 1
    +
    @IBInspectable open var outerRingCapStyle: Int = 1
    @@ -583,7 +619,7 @@

    Inner Ring properties

    Declaration

    Swift

    -
    @IBInspectable public var innerRingWidth: CGFloat = 5.0
    +
    @IBInspectable open var innerRingWidth: CGFloat = 5.0
    @@ -618,7 +654,7 @@

    Declaration

    Declaration

    Swift

    -
    @IBInspectable public var innerRingColor: UIColor = UIColor.blue
    +
    @IBInspectable open var innerRingColor: UIColor = UIColor.blue
    @@ -655,7 +691,7 @@

    Declaration

    Declaration

    Swift

    -
    @IBInspectable public var innerRingSpacing: CGFloat = 1
    +
    @IBInspectable open var innerRingSpacing: CGFloat = 1
    @@ -699,7 +735,7 @@

    Declaration

    Declaration

    Swift

    -
    @IBInspectable public var innerRingCapStyle: Int = 2
    +
    @IBInspectable open var innerRingCapStyle: Int = 2
    @@ -746,7 +782,7 @@

    Label

    Declaration

    Swift

    -
    @IBInspectable public var shouldShowValueText: Bool = true
    +
    @IBInspectable open var shouldShowValueText: Bool = true
    @@ -781,7 +817,7 @@

    Declaration

    Declaration

    Swift

    -
    @IBInspectable public var fontColor: UIColor = UIColor.black
    +
    @IBInspectable open var fontColor: UIColor = UIColor.black
    @@ -816,7 +852,7 @@

    Declaration

    Declaration

    Swift

    -
    @IBInspectable public var fontSize: CGFloat = 18
    +
    @IBInspectable open var fontSize: CGFloat = 18
    @@ -853,7 +889,7 @@

    Declaration

    Declaration

    Swift

    -
    @IBInspectable public var customFontWithName: String?
    +
    @IBInspectable open var customFontWithName: String?
    @@ -890,7 +926,7 @@

    Declaration

    Declaration

    Swift

    -
    @IBInspectable public var valueIndicator: String = "%"
    +
    @IBInspectable open var valueIndicator: String = "%"
    @@ -928,7 +964,7 @@

    Declaration

    Declaration

    Swift

    -
    @IBInspectable public var showFloatingPoint: Bool = false
    +
    @IBInspectable open var showFloatingPoint: Bool = false
    @@ -965,7 +1001,7 @@

    Declaration

    Declaration

    Swift

    -
    @IBInspectable public var decimalPlaces: Int = 2
    +
    @IBInspectable open var decimalPlaces: Int = 2
    @@ -1015,7 +1051,7 @@

    Animation properties

    Declaration

    Swift

    -
    public var animationStyle: String = kCAMediaTimingFunctionEaseIn
    +
    open var animationStyle: String = kCAMediaTimingFunctionEaseIn
    @@ -1050,7 +1086,7 @@

    Declaration

    Declaration

    Swift

    -
    public var isAnimating: Bool
    +
    open var isAnimating: Bool
    @@ -1200,7 +1236,7 @@

    Declaration

    -

    Sets the current value for the progress ring

    +

    Sets the current value for the progress ring, calling this method while ring is animating will cancel the previously set animation and start a new one.

    Parameter

    @@ -1222,7 +1258,7 @@

    Declaration

    Important

    -

    Animatin duration = 0 will cause no animation to occur

    +

    Animatin duration = 0 will cause no animation to occur, and value will instantly be set

    Author:

    @@ -1233,7 +1269,7 @@

    Declaration

    Declaration

    Swift

    -
    public func setProgress(value: CGFloat, animationDuration: TimeInterval, completion: ProgressCompletion? = nil)
    +
    open func setProgress(value: CGFloat, animationDuration: TimeInterval, completion: ProgressCompletion? = nil)
    @@ -1294,7 +1330,7 @@

    Parameters

    diff --git a/docs/Protocols.html b/docs/Protocols.html index e4574d75..b98a79fa 100644 --- a/docs/Protocols.html +++ b/docs/Protocols.html @@ -119,7 +119,7 @@

    Declaration

    diff --git a/docs/Protocols/UICircularProgressRingDelegate.html b/docs/Protocols/UICircularProgressRingDelegate.html index 7e5aeb73..aa86316b 100644 --- a/docs/Protocols/UICircularProgressRingDelegate.html +++ b/docs/Protocols/UICircularProgressRingDelegate.html @@ -151,7 +151,7 @@

    Parameters

    diff --git a/docs/docsets/UICircularProgressRing.docset/Contents/Resources/Documents/Classes.html b/docs/docsets/UICircularProgressRing.docset/Contents/Resources/Documents/Classes.html index 68b56216..7ff016f2 100644 --- a/docs/docsets/UICircularProgressRing.docset/Contents/Resources/Documents/Classes.html +++ b/docs/docsets/UICircularProgressRing.docset/Contents/Resources/Documents/Classes.html @@ -123,7 +123,7 @@

    Declaration

    diff --git a/docs/docsets/UICircularProgressRing.docset/Contents/Resources/Documents/Classes/UICircularProgressRingView.html b/docs/docsets/UICircularProgressRing.docset/Contents/Resources/Documents/Classes/UICircularProgressRingView.html index 7f0c7efa..d9718610 100644 --- a/docs/docsets/UICircularProgressRing.docset/Contents/Resources/Documents/Classes/UICircularProgressRingView.html +++ b/docs/docsets/UICircularProgressRing.docset/Contents/Resources/Documents/Classes/UICircularProgressRingView.html @@ -159,7 +159,7 @@

    Declaration

    Declaration

    Swift

    -
    public weak var delegate: UICircularProgressRingDelegate?
    +
    open weak var delegate: UICircularProgressRingDelegate?
    @@ -196,6 +196,8 @@

    Value Properties

    Default = 0

    +

    This cannot be used to get the value while the ring is animating, to get current value while animating use currentValue

    +

    The current value of the progress ring, use setProgress(value:) to alter the value with the option to animate and have a completion handler.

    @@ -208,7 +210,41 @@

    Value Properties

    Declaration

    Swift

    -
    @IBInspectable public var value: CGFloat = 0
    +
    @IBInspectable open var value: CGFloat = 0
    + +
    + +
    + +
  • +
  • +
    + + + + currentValue + +
    +
    +
    +
    +
    +
    +

    The current value of the progress ring

    + +

    This will return the current value of the progress ring, if the ring is animating it will be updated in real time. +If the ring is not currently animating then the value returned will be the value property of the ring

    + +

    Author:

    + +

    Luis Padron

    + +
    +
    +

    Declaration

    +
    +

    Swift

    +
    open var currentValue: CGFloat?
    @@ -244,7 +280,7 @@

    Declaration

    Declaration

    Swift

    -
    @IBInspectable public var maxValue: CGFloat = 100
    +
    @IBInspectable open var maxValue: CGFloat = 100
    @@ -301,7 +337,7 @@

    View Style

    Declaration

    Swift

    -
    @IBInspectable public var viewStyle: Int = 1
    +
    @IBInspectable open var viewStyle: Int = 1
    @@ -336,7 +372,7 @@

    Declaration

    Declaration

    Swift

    -
    public var patternForDashes: [CGFloat] = [7.0, 7.0]
    +
    open var patternForDashes: [CGFloat] = [7.0, 7.0]
    @@ -376,7 +412,7 @@

    Declaration

    Declaration

    Swift

    -
    @IBInspectable public var startAngle: CGFloat = 0
    +
    @IBInspectable open var startAngle: CGFloat = 0
    @@ -416,7 +452,7 @@

    Declaration

    Declaration

    Swift

    -
    @IBInspectable public var endAngle: CGFloat = 360
    +
    @IBInspectable open var endAngle: CGFloat = 360
    @@ -462,7 +498,7 @@

    Outer Ring properties

    Declaration

    Swift

    -
    @IBInspectable public var outerRingWidth: CGFloat = 10.0
    +
    @IBInspectable open var outerRingWidth: CGFloat = 10.0
    @@ -497,7 +533,7 @@

    Declaration

    Declaration

    Swift

    -
    @IBInspectable public var outerRingColor: UIColor = UIColor.gray
    +
    @IBInspectable open var outerRingColor: UIColor = UIColor.gray
    @@ -537,7 +573,7 @@

    Declaration

    Declaration

    Swift

    -
    @IBInspectable public var outerRingCapStyle: Int = 1
    +
    @IBInspectable open var outerRingCapStyle: Int = 1
    @@ -583,7 +619,7 @@

    Inner Ring properties

    Declaration

    Swift

    -
    @IBInspectable public var innerRingWidth: CGFloat = 5.0
    +
    @IBInspectable open var innerRingWidth: CGFloat = 5.0
    @@ -618,7 +654,7 @@

    Declaration

    Declaration

    Swift

    -
    @IBInspectable public var innerRingColor: UIColor = UIColor.blue
    +
    @IBInspectable open var innerRingColor: UIColor = UIColor.blue
    @@ -655,7 +691,7 @@

    Declaration

    Declaration

    Swift

    -
    @IBInspectable public var innerRingSpacing: CGFloat = 1
    +
    @IBInspectable open var innerRingSpacing: CGFloat = 1
    @@ -699,7 +735,7 @@

    Declaration

    Declaration

    Swift

    -
    @IBInspectable public var innerRingCapStyle: Int = 2
    +
    @IBInspectable open var innerRingCapStyle: Int = 2
    @@ -746,7 +782,7 @@

    Label

    Declaration

    Swift

    -
    @IBInspectable public var shouldShowValueText: Bool = true
    +
    @IBInspectable open var shouldShowValueText: Bool = true
    @@ -781,7 +817,7 @@

    Declaration

    Declaration

    Swift

    -
    @IBInspectable public var fontColor: UIColor = UIColor.black
    +
    @IBInspectable open var fontColor: UIColor = UIColor.black
    @@ -816,7 +852,7 @@

    Declaration

    Declaration

    Swift

    -
    @IBInspectable public var fontSize: CGFloat = 18
    +
    @IBInspectable open var fontSize: CGFloat = 18
    @@ -853,7 +889,7 @@

    Declaration

    Declaration

    Swift

    -
    @IBInspectable public var customFontWithName: String?
    +
    @IBInspectable open var customFontWithName: String?
    @@ -890,7 +926,7 @@

    Declaration

    Declaration

    Swift

    -
    @IBInspectable public var valueIndicator: String = "%"
    +
    @IBInspectable open var valueIndicator: String = "%"
    @@ -928,7 +964,7 @@

    Declaration

    Declaration

    Swift

    -
    @IBInspectable public var showFloatingPoint: Bool = false
    +
    @IBInspectable open var showFloatingPoint: Bool = false
    @@ -965,7 +1001,7 @@

    Declaration

    Declaration

    Swift

    -
    @IBInspectable public var decimalPlaces: Int = 2
    +
    @IBInspectable open var decimalPlaces: Int = 2
    @@ -1015,7 +1051,7 @@

    Animation properties

    Declaration

    Swift

    -
    public var animationStyle: String = kCAMediaTimingFunctionEaseIn
    +
    open var animationStyle: String = kCAMediaTimingFunctionEaseIn
    @@ -1050,7 +1086,7 @@

    Declaration

    Declaration

    Swift

    -
    public var isAnimating: Bool
    +
    open var isAnimating: Bool
    @@ -1200,7 +1236,7 @@

    Declaration

    -

    Sets the current value for the progress ring

    +

    Sets the current value for the progress ring, calling this method while ring is animating will cancel the previously set animation and start a new one.

    Parameter

    @@ -1222,7 +1258,7 @@

    Declaration

    Important

    -

    Animatin duration = 0 will cause no animation to occur

    +

    Animatin duration = 0 will cause no animation to occur, and value will instantly be set

    Author:

    @@ -1233,7 +1269,7 @@

    Declaration

    Declaration

    Swift

    -
    public func setProgress(value: CGFloat, animationDuration: TimeInterval, completion: ProgressCompletion? = nil)
    +
    open func setProgress(value: CGFloat, animationDuration: TimeInterval, completion: ProgressCompletion? = nil)
    @@ -1294,7 +1330,7 @@

    Parameters

    diff --git a/docs/docsets/UICircularProgressRing.docset/Contents/Resources/Documents/Protocols.html b/docs/docsets/UICircularProgressRing.docset/Contents/Resources/Documents/Protocols.html index e4574d75..b98a79fa 100644 --- a/docs/docsets/UICircularProgressRing.docset/Contents/Resources/Documents/Protocols.html +++ b/docs/docsets/UICircularProgressRing.docset/Contents/Resources/Documents/Protocols.html @@ -119,7 +119,7 @@

    Declaration

    diff --git a/docs/docsets/UICircularProgressRing.docset/Contents/Resources/Documents/Protocols/UICircularProgressRingDelegate.html b/docs/docsets/UICircularProgressRing.docset/Contents/Resources/Documents/Protocols/UICircularProgressRingDelegate.html index 7e5aeb73..aa86316b 100644 --- a/docs/docsets/UICircularProgressRing.docset/Contents/Resources/Documents/Protocols/UICircularProgressRingDelegate.html +++ b/docs/docsets/UICircularProgressRing.docset/Contents/Resources/Documents/Protocols/UICircularProgressRingDelegate.html @@ -151,7 +151,7 @@

    Parameters

    diff --git a/docs/docsets/UICircularProgressRing.docset/Contents/Resources/Documents/index.html b/docs/docsets/UICircularProgressRing.docset/Contents/Resources/Documents/index.html index f96bc6f4..830e7968 100644 --- a/docs/docsets/UICircularProgressRing.docset/Contents/Resources/Documents/index.html +++ b/docs/docsets/UICircularProgressRing.docset/Contents/Resources/Documents/index.html @@ -189,7 +189,7 @@

    A circular progress bar for iOS written in Swift 3

    diff --git a/docs/docsets/UICircularProgressRing.docset/Contents/Resources/docSet.dsidx b/docs/docsets/UICircularProgressRing.docset/Contents/Resources/docSet.dsidx index 2e6a3428..7e71b38b 100644 Binary files a/docs/docsets/UICircularProgressRing.docset/Contents/Resources/docSet.dsidx and b/docs/docsets/UICircularProgressRing.docset/Contents/Resources/docSet.dsidx differ diff --git a/docs/docsets/UICircularProgressRing.tgz b/docs/docsets/UICircularProgressRing.tgz index 9934e11f..840495a7 100644 Binary files a/docs/docsets/UICircularProgressRing.tgz and b/docs/docsets/UICircularProgressRing.tgz differ diff --git a/docs/index.html b/docs/index.html index e1be7b9e..2358951d 100644 --- a/docs/index.html +++ b/docs/index.html @@ -62,9 +62,7 @@
    - -

    A circular progress bar for iOS written in Swift 3

    - +

    Features

      @@ -130,6 +128,7 @@

      A circular progress bar for iOS written in Swift 3

      Simply drag a UIView into your storyboard. Make sure to subclass UICircularProgressRingView and that the module points UICircularProgressRing.

      Design your heart out

      +

      Code

      override func viewDidLoad() {
         // Create the view
      @@ -180,7 +179,7 @@ 

      A circular progress bar for iOS written in Swift 3