Reachability.swift
Reachability.swift copied to clipboard
whenReachable called for both wifi going on and off
trafficstars
When using the following setup:
reachability.whenReachable = { reachability in
print("reachable called")
}
}
reachability.whenUnreachable = { reachability in
print("UNreachable called")
}
}
I get the first block getting called for both wifi going on and off. The unreachable block never gets called. I've stepped in with the debugger to confirm this.
Same issue here. Tested on iPhone SE, iOS 13.3
Ah, my bad. I had cellular enabled.