I test this on a simple single-page iOS app and see the print-out when I turn wifi on and see the print out again when I turn it off, but that's it. On subsequent turn off/on I don't see any further print outs. Here is my entire code: (Should I not see message prints each time the status of connectivity changes?)
I test this on a simple single-page iOS app and see the print-out when I turn wifi on and see the print out again when I turn it off, but that's it. On subsequent turn off/on I don't see any further print outs. Here is my entire code: (Should I not see message prints each time the status of connectivity changes?)
Code:
import UIKit import Reachability
let reachability = try! Reachability()
class ViewController: UIViewController {
}
output:
WiFi connected Not reachable