guard let reachability = Reachability(), reachability.isReachable == true else {
    // No network connection available. Do stuff.
    ...
}

While this works, it's not immediately readable and creates confusion. Mis-using Swift's control flow. Did not pass code review.

By Anonymous, 2017-12-22 10:04:01