iOS Sep 22, 2026
3 min read
SwiftUI: Check Internet Connection with NWPathMonitor
To check the internet connection in a SwiftUI app, use NWPathMonitor from the Network framework. It tells you whether a network path is available, whether it is expensive or in Low Data Mode, and when any of that changes. It can't tell you the internet is actually reachable, so your requests still need to handle failure.