From 3fafda71326d161422db4fa567d9a95db9e80c12 Mon Sep 17 00:00:00 2001 From: Igor Kislyuk Date: Tue, 21 Nov 2017 22:26:32 +0300 Subject: [PATCH] Fix spinner --- CHANGELOG.md | 4 ++++ LeadKit.podspec | 2 +- Sources/Classes/Views/SpinnerView/SpinnerView.swift | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 549c3b66..ba178a87 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +### 0.6.4 + +- **Fix**: SpinnerView bug(no animation) in Swift 4. + ## 0.6.3 - **Fix**: SeparatorCell updates constraints after setting separator insets diff --git a/LeadKit.podspec b/LeadKit.podspec index ee894d0a..19f7883d 100644 --- a/LeadKit.podspec +++ b/LeadKit.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "LeadKit" - s.version = "0.6.3" + s.version = "0.6.4" 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/SpinnerView.swift b/Sources/Classes/Views/SpinnerView/SpinnerView.swift index f8f0babc..4a7b23e4 100644 --- a/Sources/Classes/Views/SpinnerView/SpinnerView.swift +++ b/Sources/Classes/Views/SpinnerView/SpinnerView.swift @@ -82,7 +82,7 @@ public final class SpinnerView: UIView, Animatable, LoadingIndicator { // MARK: - Animatable - public func startAnimating() { + @objc public func startAnimating() { guard !animating else { return } @@ -94,7 +94,7 @@ public final class SpinnerView: UIView, Animatable, LoadingIndicator { addAnimation() } - public func stopAnimating() { + @objc public func stopAnimating() { guard animating else { return }