Skip to content

Commit

Permalink
- animation completion bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-khashimov committed Jun 23, 2020
1 parent 8e365c7 commit 1f73f8b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions Documentation/Changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## CHANGELOG

### v0.6.1

- `func startAnimating(fullRotationTimeInSeconds: Int, finishIndex: Int, _ completion:((Bool) -> Void)?)` - completion fix

### v0.6.0
- added `line` to `Slice.ContentType` and `LinePreferences`. Now supports a curved line inside a slice;
- Optional `backgroundColor` added to `Slice`. You can now override a background color for specified `Slice`, during `Slice` initialization;
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftFortuneWheel/SwiftFortuneWheel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ extension SwiftFortuneWheel: SpinningAnimatorProtocol {
let deadline = DispatchTime.now() + DispatchTimeInterval.seconds(fullRotationTimeInSeconds)
DispatchQueue.main.asyncAfter(deadline: deadline) {
self.startAnimating(finishIndex: finishIndex) { (finished) in
print(finished)
completion?(finished)
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion SwiftFortuneWheel.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "SwiftFortuneWheel"
s.version = "0.6.0"
s.version = "0.6.1"
s.summary = "Fortune spinning wheel that supports dynamic content and rich customization."
s.description = <<-DESC
Fortune spinning wheel that supports dynamic content and rich customization. Main Features: Dynamic content, support image, and text; Appearance customization; Drawn and animated using CoreGraphics; Dynamic layout.
Expand Down

0 comments on commit 1f73f8b

Please sign in to comment.