Merge pull request #203 from TouchInstinct/fix/spinner_fix

Fix/spinner fix
This commit is contained in:
Pavel Lukandiy 2019-04-19 17:46:43 +03:00 committed by GitHub
commit 0df9be960f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 11 additions and 5 deletions

View File

@ -1,5 +1,8 @@
# Changelog
### 0.9.17
- **Fix**: SpinnerView infinity animation.
### 0.9.16
- **Add**: `LabelTableViewCell` moved from `LeadKitAdditions`.
- **Add**: `SnapKit` dependency.

View File

@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "LeadKit"
s.version = "0.9.16"
s.version = "0.9.17"
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

@ -27,7 +27,7 @@ extension CABasicAnimation {
static let rotationKeyPath = "transform.rotation.z"
static func zRotationAnimationWith(duration: CFTimeInterval = 1,
repeatCount: Float = Float.infinity,
repeatCount: Float = .infinity,
clockwise: Bool = true) -> CABasicAnimation {
let animation = CABasicAnimation(keyPath: CABasicAnimation.rotationKeyPath)
@ -36,6 +36,9 @@ extension CABasicAnimation {
animation.duration = duration
animation.isCumulative = true
animation.repeatCount = repeatCount
if repeatCount == .infinity {
animation.isRemovedOnCompletion = false
}
return animation
}

View File

@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>0.9.16</string>
<string>0.9.17</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>

View File

@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>0.9.16</string>
<string>0.9.17</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>

View File

@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>0.9.16</string>
<string>0.9.17</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>