Skip to content

Commit

Permalink
added animation functions
Browse files Browse the repository at this point in the history
  • Loading branch information
cemolcay committed Dec 22, 2014
1 parent 363dad2 commit fe108dc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
Binary file not shown.
13 changes: 10 additions & 3 deletions CEMKit-Swift/CEMKit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,8 @@ extension UIView {

// MARK: Animation Extensions

func spring (animations: (()->Void),
completion: ((Bool)->Void)?) {
func spring (animations: (()->Void)!,
completion: ((Bool)->Void)? = nil) {
UIView.animateWithDuration(UIViewAnimationDuration,
delay: 0,
usingSpringWithDamping: UIViewAnimationSpringDamping,
Expand All @@ -271,8 +271,15 @@ extension UIView {
animations: animations,
completion: completion)
}


func animate (animations: (()->Void)!,
completion: ((Bool)->Void)? = nil) {
UIView.animateWithDuration(UIViewAnimationDuration,
animations: animations,
completion: completion)
}



// MARK: Gesture Extensions

Expand Down

0 comments on commit fe108dc

Please sign in to comment.