<!--
{
  "availability" : [
    "iOS: 9.0.0 - 18.0.0",
    "iPadOS: 9.0.0 - 18.0.0",
    "macCatalyst: 13.1.0 - 18.0.0",
    "macOS: 10.11.0 - 15.0.0",
    "tvOS: 17.0.0 - 18.0.0",
    "visionOS: 1.0.0 - 2.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "NetworkExtension",
  "identifier" : "/documentation/NetworkExtension/NWPath/isEqual(to:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Network Extension"
    ],
    "preciseIdentifier" : "c:objc(cs)NWPath(im)isEqualToPath:"
  },
  "title" : "isEqual(to:)"
}
-->

# isEqual(to:)

Comparison method for [`NWPath`](/documentation/NetworkExtension/NWPath) objects.

```
func isEqual(to path: NWPath) -> Bool
```

## Parameters

`path`

Another [`NWPath`](/documentation/NetworkExtension/NWPath) object to compare.

## Discussion

Returns <doc://com.apple.documentation/documentation/Swift/true> if the objects are equal, <doc://com.apple.documentation/documentation/Swift/false> otherwise. If two [`NWPath`](/documentation/NetworkExtension/NWPath) objects are equal, this means that the underlying network configuration (routes, interfaces, address, etc.) are the same between them.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)