Skip to content

Commit 14e5fd5

Browse files
committed
'Cancel' for PromiseKit --
* update extensions to point at the latest version of PromiseKit in the pull request * fix "generic parameter 'T' could not be inferred" compilation errors when using the new 'Promise' initializer that takes a cancellable task
1 parent 9eb31d2 commit 14e5fd5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cartfile.resolved

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
github "dougzilla32/PromiseKit" "5069bdc1b10847d47f5fdbe3accb623b3b1908a3"
1+
github "dougzilla32/PromiseKit" "dcf77e0afe55e3d18da9a2a5bda28cdf1adcb5a9"

Sources/UIViewPropertyAnimator+Promise.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import UIKit
66
@available(iOS 10, tvOS 10, *)
77
public extension UIViewPropertyAnimator: CancellableTask {
88
func startAnimation(_: PMKNamespacer) -> Guarantee<UIViewAnimatingPosition> {
9-
return Guarantee(cancellableTask: self) {
9+
return Guarantee<UIViewAnimatingPosition>(cancellableTask: self) {
1010
addCompletion($0)
1111
startAnimation()
1212
}

0 commit comments

Comments
 (0)