Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b9fef1fb29 | |||
| 9f7a41e2d8 | |||
| c6b46dcd53 |
@@ -16,10 +16,10 @@ protocol DeterminableAnimation {
|
||||
@IBDesignable
|
||||
public class DeterminateAnimation: BaseView, DeterminableAnimation {
|
||||
|
||||
@IBInspectable var animated: Bool = true
|
||||
@IBInspectable public var animated: Bool = true
|
||||
|
||||
/// Value of progress now. Range 0..1
|
||||
@IBInspectable var progress: CGFloat = 0 {
|
||||
@IBInspectable public var progress: CGFloat = 0 {
|
||||
didSet {
|
||||
updateProgress()
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ public class IndeterminateAnimation: BaseView, AnimationActivityProtocol {
|
||||
True invokes `startAnimation()` on subclass of IndeterminateAnimation
|
||||
False invokes `stopAnimation()` on subclass of IndeterminateAnimation
|
||||
*/
|
||||
var animate: Bool = false {
|
||||
public var animate: Bool = false {
|
||||
didSet {
|
||||
if animate {
|
||||
self.hidden = false
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
Pod::Spec.new do |spec|
|
||||
spec.name = 'ProgressKit'
|
||||
spec.version = '0.4.0'
|
||||
spec.version = '0.4.1'
|
||||
spec.license = 'MIT'
|
||||
spec.summary = 'Animated ProgressViews for OS X'
|
||||
spec.homepage = 'https://github.com/kaunteya/ProgressKit'
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||

|
||||
|
||||
`ProgressKit` has set of cool `IBDesignable` progress views, with huge customisation options.
|
||||
You can now make spinners, progress bar, crawlers etc, which nicely gets integrated according to your app theme.
|
||||
You can now make spinners, progress bar, crawlers etc, which can be finely customised according to your app palette.
|
||||
|
||||
# Contents
|
||||
- [Installation](#installation)
|
||||
@@ -43,7 +43,7 @@ $ pod install
|
||||
- Set the size such that width and height are equal
|
||||
- Drag `IBOutlet` to View Controller
|
||||
- For `Indeterminate` Progress Views
|
||||
- Set `Boolean` value to `view.animate`
|
||||
- Set `true / false` to `view.animate`
|
||||
- For `Determinate` Progress Views:
|
||||
- Set `view.progress` to value in `0...1`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user