Files
Jot/Carthage/Checkouts/PromiseKit/Extensions/UIKit/Sources/UIViewPropertyAnimator+Promise.swift
James Griffin be7b6b5881 Add PromiseKit dependency
- Added PromiseKit dependency
2018-11-15 22:12:39 -04:00

15 lines
316 B
Swift

#if !PMKCocoaPods
import PromiseKit
#endif
import UIKit
@available(iOS 10, tvOS 10, *)
public extension UIViewPropertyAnimator {
func startAnimation(_: PMKNamespacer) -> Guarantee<UIViewAnimatingPosition> {
return Guarantee {
addCompletion($0)
startAnimation()
}
}
}