diff --git a/Sources/UIKit/UIView+Task.swift b/Sources/UIKit/UIView+Task.swift index 1ecb6c8..969fff3 100644 --- a/Sources/UIKit/UIView+Task.swift +++ b/Sources/UIKit/UIView+Task.swift @@ -6,7 +6,7 @@ import UIKit extension UIView { - static func animationTask(withDuration duration: TimeInterval, animations: @escaping ()->Void) -> Observer { + public static func animationTask(withDuration duration: TimeInterval, animations: @escaping ()->Void) -> Observer { return Observer { completion in UIView.animate(withDuration: duration, animations: animations) { finished in if finished { @@ -20,7 +20,7 @@ extension UIView { } } - static func animationTask(withDuration duration: TimeInterval, delay: TimeInterval, options: UIViewAnimationOptions, animations: @escaping ()->Void) -> Observer { + public static func animationTask(withDuration duration: TimeInterval, delay: TimeInterval, options: UIViewAnimationOptions, animations: @escaping ()->Void) -> Observer { return Observer { completion in UIView.animate(withDuration: duration, delay: delay, options: options, animations: animations) { finished in if finished { @@ -34,7 +34,7 @@ extension UIView { } } - static func animationTask(withDuration duration: TimeInterval, delay: TimeInterval, usingSpringWithDamping dampingRatio: CGFloat, initialSpringVelocity velocity: CGFloat, options: UIViewAnimationOptions, animations: @escaping ()->Void) -> Observer { + public static func animationTask(withDuration duration: TimeInterval, delay: TimeInterval, usingSpringWithDamping dampingRatio: CGFloat, initialSpringVelocity velocity: CGFloat, options: UIViewAnimationOptions, animations: @escaping ()->Void) -> Observer { return Observer { completion in @@ -50,7 +50,7 @@ extension UIView { } } - static func transitionTask(with view: UIView, duration: TimeInterval, options: UIViewAnimationOptions, animations: @escaping ()->Void) -> Observer { + public static func transitionTask(with view: UIView, duration: TimeInterval, options: UIViewAnimationOptions, animations: @escaping ()->Void) -> Observer { return Observer { completion in UIView.transition(with: view, duration: duration, options: options, animations: animations) { finished in