diff --git a/Revolutionary.podspec b/Revolutionary.podspec index 6bdd5a0..cc6a2f4 100644 --- a/Revolutionary.podspec +++ b/Revolutionary.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "Revolutionary" -s.version = "0.3.0" +s.version = "0.3.1" s.summary = "Animate your Revolutions :)" s.description = <<-DESC Revolutionary helps you to manage circular animations by using SpriteKit (so you can use in watchOS and tvOS as well) working seamlessly when imported in UIKit. diff --git a/Revolutionary/Revolutionary.swift b/Revolutionary/Revolutionary.swift index 897bd01..efa15c4 100644 --- a/Revolutionary/Revolutionary.swift +++ b/Revolutionary/Revolutionary.swift @@ -346,7 +346,9 @@ public class Revolutionary: SKNode { - To build the arc radius, the property `arcRadius` is used. - To determine the arc orientation, the property `clockwise` is used. */ - private func arcPath(withProgress progress: CGFloat) -> CGPath { + private func arcPath(withProgress progress: CGFloat) -> CGPath? { + guard progress > 0 else { return nil } + let arcEndAngle = V.fullRevolution * progress //The "clockwise" is inverse in SpriteKit coordinates. See more at https://stackoverflow.com/a/36820789/8558606 diff --git a/SupportingFiles/iOS/Info.plist b/SupportingFiles/iOS/Info.plist index cfbdaeb..af068c5 100644 --- a/SupportingFiles/iOS/Info.plist +++ b/SupportingFiles/iOS/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 0.3.0 + 0.3.1 CFBundleVersion 1