Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
psharanda committed Apr 23, 2017
1 parent 89988b9 commit f3f5067
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Sources/UIKit/UIView+Task.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import UIKit

extension UIView {
static func animationTask(withDuration duration: TimeInterval, animations: @escaping ()->Void) -> Observer<Void> {
public static func animationTask(withDuration duration: TimeInterval, animations: @escaping ()->Void) -> Observer<Void> {
return Observer { completion in
UIView.animate(withDuration: duration, animations: animations) { finished in
if finished {
Expand All @@ -20,7 +20,7 @@ extension UIView {
}
}

static func animationTask(withDuration duration: TimeInterval, delay: TimeInterval, options: UIViewAnimationOptions, animations: @escaping ()->Void) -> Observer<Void> {
public static func animationTask(withDuration duration: TimeInterval, delay: TimeInterval, options: UIViewAnimationOptions, animations: @escaping ()->Void) -> Observer<Void> {
return Observer { completion in
UIView.animate(withDuration: duration, delay: delay, options: options, animations: animations) { finished in
if finished {
Expand All @@ -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<Void> {
public static func animationTask(withDuration duration: TimeInterval, delay: TimeInterval, usingSpringWithDamping dampingRatio: CGFloat, initialSpringVelocity velocity: CGFloat, options: UIViewAnimationOptions, animations: @escaping ()->Void) -> Observer<Void> {


return Observer { completion in
Expand All @@ -50,7 +50,7 @@ extension UIView {
}
}

static func transitionTask(with view: UIView, duration: TimeInterval, options: UIViewAnimationOptions, animations: @escaping ()->Void) -> Observer<Void> {
public static func transitionTask(with view: UIView, duration: TimeInterval, options: UIViewAnimationOptions, animations: @escaping ()->Void) -> Observer<Void> {

return Observer { completion in
UIView.transition(with: view, duration: duration, options: options, animations: animations) { finished in
Expand Down

0 comments on commit f3f5067

Please sign in to comment.