@@ -41,22 +41,22 @@ public extension UIView {
41
41
whether or not the animations actually finished.
42
42
*/
43
43
static func animate( _: PMKNamespacer , duration: TimeInterval , delay: TimeInterval = 0 , options: UIViewAnimationOptions = [ ] , animations: @escaping ( ) -> Void ) -> Guarantee < Bool > {
44
- return Guarantee ( . pending ) { animate ( withDuration: duration, delay: delay, options: options, animations: animations, completion: $0) }
44
+ return Guarantee { animate ( withDuration: duration, delay: delay, options: options, animations: animations, completion: $0) }
45
45
}
46
46
47
47
static func animate( _: PMKNamespacer , duration: TimeInterval , delay: TimeInterval , usingSpringWithDamping damping: CGFloat , initialSpringVelocity: CGFloat , options: UIViewAnimationOptions = [ ] , animations: @escaping ( ) -> Void ) -> Guarantee < Bool > {
48
- return Guarantee ( . pending ) { animate ( withDuration: duration, delay: delay, usingSpringWithDamping: damping, initialSpringVelocity: initialSpringVelocity, options: options, animations: animations, completion: $0) }
48
+ return Guarantee { animate ( withDuration: duration, delay: delay, usingSpringWithDamping: damping, initialSpringVelocity: initialSpringVelocity, options: options, animations: animations, completion: $0) }
49
49
}
50
50
51
51
static func transition( _: PMKNamespacer , with view: UIView , duration: TimeInterval , options: UIViewAnimationOptions = [ ] , animations: ( ( ) -> Void ) ? ) -> Guarantee < Bool > {
52
- return Guarantee ( . pending ) { transition ( with: view, duration: duration, options: options, animations: animations, completion: $0) }
52
+ return Guarantee { transition ( with: view, duration: duration, options: options, animations: animations, completion: $0) }
53
53
}
54
54
55
55
static func transition( _: PMKNamespacer , from: UIView , to: UIView , duration: TimeInterval , options: UIViewAnimationOptions = [ ] ) -> Guarantee < Bool > {
56
- return Guarantee ( . pending ) { transition ( from: from, to: to, duration: duration, options: options, completion: $0) }
56
+ return Guarantee { transition ( from: from, to: to, duration: duration, options: options, completion: $0) }
57
57
}
58
58
59
59
static func perform( _: PMKNamespacer , animation: UISystemAnimation , on views: [ UIView ] , options: UIViewAnimationOptions = [ ] , animations: ( ( ) -> Void ) ? ) -> Guarantee < Bool > {
60
- return Guarantee ( . pending ) { perform ( animation, on: views, options: options, animations: animations, completion: $0) }
60
+ return Guarantee { perform ( animation, on: views, options: options, animations: animations, completion: $0) }
61
61
}
62
62
}
0 commit comments