---
title: prohibitExpensivePaths
framework: network
role: symbol
role_heading: Instance Property
path: network/nwparameters/prohibitexpensivepaths
---

# prohibitExpensivePaths

A Boolean that prevents connections, listeners, and browsers from using network paths marked as expensive.

## Declaration

```swift
final var prohibitExpensivePaths: Bool { get set }
```

## Discussion

Discussion To test the behavior of this property, you can override the device’s current values for cellular and Wi-Fi cost in Settings > Developer > Network Override. tip: Prefer basing your app’s policy logic around the prohibitConstrainedPaths property rather than this one. People using your app can use the “Low Data Mode” setting to set the constrained status, and thereby choose to use a potentially expensive network.

## See Also

### Selecting Paths

- [requiredInterfaceType](network/nwparameters/requiredinterfacetype.md)
- [requiredInterface](network/nwparameters/requiredinterface.md)
- [requiredLocalEndpoint](network/nwparameters/requiredlocalendpoint.md)
- [prohibitConstrainedPaths](network/nwparameters/prohibitconstrainedpaths.md)
- [prohibitedInterfaceTypes](network/nwparameters/prohibitedinterfacetypes.md)
- [prohibitedInterfaces](network/nwparameters/prohibitedinterfaces.md)
