Merge pull request #90 from TouchInstinct/fix/public

Fix modifiers
This commit is contained in:
Igor Kislyuk 2017-10-09 14:19:20 +03:00 committed by GitHub
commit f900148e15
3 changed files with 13 additions and 9 deletions

View File

@ -15,3 +15,7 @@
## 0.5.9
- **Fix**: One-two-many fixed for values more than 99
## 0.5.10
- **Fix**: `Public` modifier for `SpinnerView`

View File

@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "LeadKit"
s.version = "0.5.9"
s.version = "0.5.10"
s.summary = "iOS framework with a bunch of tools for rapid development"
s.homepage = "https://github.com/TouchInstinct/LeadKit"
s.license = "Apache License, Version 2.0"

View File

@ -22,7 +22,7 @@
import UIKit
class SpinnerView: UIView, Animatable, LoadingIndicator {
public final class SpinnerView: UIView, Animatable, LoadingIndicator {
private(set) var animating: Bool = false
private var startTime = CFTimeInterval(0)
@ -34,10 +34,10 @@ class SpinnerView: UIView, Animatable, LoadingIndicator {
private let animationRepeatCount: Float
private let clockwiseAnimation: Bool
init(image: UIImage,
animationDuration: CFTimeInterval = 1,
animationRepeatCount: Float = Float.infinity,
clockwiseAnimation: Bool = true) {
public init(image: UIImage,
animationDuration: CFTimeInterval = 1,
animationRepeatCount: Float = Float.infinity,
clockwiseAnimation: Bool = true) {
self.animationDuration = animationDuration
self.animationRepeatCount = animationRepeatCount
@ -72,7 +72,7 @@ class SpinnerView: UIView, Animatable, LoadingIndicator {
NotificationCenter.default.removeObserver(self)
}
override func didMoveToWindow() {
override public func didMoveToWindow() {
super.didMoveToWindow()
if window != nil {
@ -82,7 +82,7 @@ class SpinnerView: UIView, Animatable, LoadingIndicator {
// MARK: - Animatable
func startAnimating() {
public func startAnimating() {
guard !animating else {
return
}
@ -94,7 +94,7 @@ class SpinnerView: UIView, Animatable, LoadingIndicator {
addAnimation()
}
func stopAnimating() {
public func stopAnimating() {
guard animating else {
return
}