Skip to content

Commit

Permalink
Fixes a bug when progress = 0 - inconsistent CGPath (Bumps to 0.3.1)
Browse files Browse the repository at this point in the history
  • Loading branch information
matuella committed Mar 22, 2019
1 parent 833df76 commit 7f267d0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Revolutionary.podspec
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 3 additions & 1 deletion Revolutionary/Revolutionary.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion SupportingFiles/iOS/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>0.3.0</string>
<string>0.3.1</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
Expand Down

0 comments on commit 7f267d0

Please sign in to comment.