-
Notifications
You must be signed in to change notification settings - Fork 945
Home
Ashley Mills edited this page Jan 11, 2016
·
6 revisions
Reachability.swift is a replacement for Apple's Reachability re-written in Swift with closures
Inspired by https://github.com/tonymillion/Reachability
Swift 2.0 now supports C-function pointers!
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.