IFTTT / RazzleDazzle

A simple keyframe-based animation framework for iOS, written in Swift. Perfect for scrolling app intros.
http://ifttt.github.io
MIT License
3.36k stars 292 forks source link

Use "guard" instead of "if" #34

Closed getaaron closed 1 year ago

getaaron commented 8 years ago

Since the hasKeyframes() condition is being used as a guard in this case, and when it fails the function returns early, guard is more stylistically appropriate than if.