From 79ebf34529e071075a4f33c9771626c501c59564 Mon Sep 17 00:00:00 2001 From: Igor Date: Sun, 8 Oct 2017 18:26:56 +0300 Subject: [PATCH 1/2] Fix modifiers --- CHANGELOG.md | 4 ++++ LeadKit.podspec | 2 +- Sources/Classes/Views/SpinnerView.swift | 8 ++++---- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6491459a..f5683a58 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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` \ No newline at end of file diff --git a/LeadKit.podspec b/LeadKit.podspec index 88062a01..dba0d228 100644 --- a/LeadKit.podspec +++ b/LeadKit.podspec @@ -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" diff --git a/Sources/Classes/Views/SpinnerView.swift b/Sources/Classes/Views/SpinnerView.swift index ecf52f25..bedbb9b2 100644 --- a/Sources/Classes/Views/SpinnerView.swift +++ b/Sources/Classes/Views/SpinnerView.swift @@ -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) @@ -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 } From ac82606f28615bd6aecd340c471120ecd1e15892 Mon Sep 17 00:00:00 2001 From: Igor Date: Sun, 8 Oct 2017 18:49:37 +0300 Subject: [PATCH 2/2] Fix init --- Sources/Classes/Views/SpinnerView.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Sources/Classes/Views/SpinnerView.swift b/Sources/Classes/Views/SpinnerView.swift index bedbb9b2..f8f0babc 100644 --- a/Sources/Classes/Views/SpinnerView.swift +++ b/Sources/Classes/Views/SpinnerView.swift @@ -34,10 +34,10 @@ public final 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