Skip to content

Instantly share code, notes, and snippets.

@Nadohs
Created February 25, 2016 19:07
Show Gist options
  • Save Nadohs/9b02e3c14d85b5b927be to your computer and use it in GitHub Desktop.
Save Nadohs/9b02e3c14d85b5b927be to your computer and use it in GitHub Desktop.

Try writing this with both an option field and a hanging animation closure, with no completion...

        UIView.animateWithDuration(0.2, delay: 0, options: .CurveEaseOut, animations: { 
          ///DO ANIMATION STUFF
        }, completion: nil)
        

I should beable to do this

        UIView.animateWithDuration(0.2, options: .CurveEaseOut) { 
          ///DO ANIMATION STUFF
        }

Yes this could be added with an extension on UIView, but the point is I shouldn't have to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment