I'd like to have a Swift function called by OS X or iOS when the network connection is back up after being down. For instance, when airplane mode has been disabled. My app should be aware of this instantly and restart using the network right away.
I found this solution, but it would involve polling, and I want to avoid this.