     return self
   }
 
+  /**
+   Moves this view into position, with a bounce at the end, either from an edge of the parent (if
+   "from" is set) or a fixed offset away from its position (if "x" and "y" are set).
+   - Parameters:
+     - from: edge of the parent view that should be used as the starting point of the animation
+     - x: horizontal offset that should be used for the starting point of the animation
+     - y: vertical offset that should be used for the starting point of the animation
+     - duration: duration of the animation, in seconds
+     - delay: delay before the animation starts, in seconds
+   */
   func bounceIn(from edge: SimpleAnimationEdge = .None,
                      x: CGFloat = 0,
                      y: CGFloat = 0,

import UIKit


public enum SimpleAnimationEdge {
  case None
  case Top

}

public extension UIView {
  /**
    Fades this view in. This method can be chained with other animations to combine a fade with
    the other animation, for instance:
    ```
    view.fadeIn().slideIn(from: .Left)
    ```
    - Parameters:
      - duration: duration of the animation, in seconds
      - delay: delay before the animation starts, in seconds
   */
  func fadeIn(duration: NSTimeInterval = 0.25,
              delay: NSTimeInterval = 0) -> UIView {
    hidden = false
