Closures are often used as function arguments. But sometimes there are situations where local closures can be very handy.
Hint: This post has been updated to Swift 3, iOS 10 and Xcode 8
Imagine you have a view controller that has two GUI modes:
enum GUIMode {
case Mode1
case Mode2