Skip to content
Ashley Mills edited this page Jan 11, 2016 · 6 revisions

Reachability.swift

Reachability.swift is a replacement for Apple's Reachability re-written in Swift with closures

Inspired by https://github.com/tonymillion/Reachability

NOTES:

Swift 2.0

Swift 2.0 now supports C-function pointers!

Swift 1.x

As of Swift 1.2, you cannot convert Swift closures into C-function pointers, meaning we can't set an SCNetworkReachabilityCallBack. To get around this, this reachability replacement uses a dispatch_source firing at 1/2 second intervals.

Apps using Reachability.Swift

Here…

Clone this wiki locally