---
title: NWPath
framework: networkextension
role: symbol
role_heading: Class
path: networkextension/nwpath
---

# NWPath

The path made by a network connection, including information about its viability.

## Declaration

```swift
class NWPath
```

## Overview

Overview For example, if the path status is NWPathStatus.satisfied, then a connection attempt will be made. When attached to a specific connection, a path takes all of the connection parameters into account. For example, if the route for a connection changes or is removed, the path will reflect that change. Note that every path is evaluated within the context of the process it is running in, and may be different across processes. NWPath is a static object, and properties of the path will never change. To monitor changing network status, use Key-Value Observing (KVO) to watch a path property on another object. For information about KVO, see Key-Value Observing Programming Guide.

## Topics

### Getting network path properties

- [status](networkextension/nwpath/status.md)
- [NWPathStatus](networkextension/nwpathstatus.md)
- [isExpensive](networkextension/nwpath/isexpensive.md)
- [isConstrained](networkextension/nwpath/isconstrained.md)

### Comparing network paths

- [isEqual(to:)](networkextension/nwpath/isequal(to:).md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
