Question : check if an app is connected to the internet swift
Answered by : kanishk-dhindsa
monitor.pathUpdateHandler = { path in if path.status == .satisfied { print("Connected") } else { print("Disconnected") } print(path.isExpensive)
}
Source : https://medium.com/@udaykiran.munaga/swift-check-for-internet-connectivity-14e355fa10c5 | Last Update : Fri, 26 Aug 22