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.
When using the following setup:
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.