My code snipet as follows …:
let defaultRouteReachability = withUnsafePointer(to: &zeroAddress) {
SCNetworkReachabilityCreateWithAddress(nil, UnsafePointer($0))
}
… does no longer compile with the following error which I don't understand:
"'init' is unavailable: use 'withMemoryRebound(to:capacity:_)' to temporarily view memory as another layout-compatible type."
What to do to fix it?
From the Release Notes of Xcode 8 beta 6:
In your case, you may need to write something like this:
Swift 3 updated the syntax,exact solution is,
Replace
with