---
title: isViable
framework: networkextension
role: symbol
role_heading: Instance Property
path: networkextension/nwtcpconnection/isviable
---

# isViable

The viability of a TCP connection indicates whether or not data can be transferred.

## Declaration

```swift
var isViable: Bool { get }
```

## Discussion

Discussion Evaluates to true if the connection can read and write data, false otherwise. Use Key-Value Observing to watch this property.

## See Also

### Monitoring the connection status

- [state](networkextension/nwtcpconnection/state.md)
- [NWTCPConnectionState](networkextension/nwtcpconnectionstate.md)
- [error](networkextension/nwtcpconnection/error.md)
