---
title: codable
framework: swiftui
role: symbol
role_heading: Instance Property
path: swiftui/navigationpath/codable
---

# codable

A value that describes the contents of this path in a serializable format.

## Declaration

```swift
var codable: NavigationPath.CodableRepresentation? { get }
```

## Discussion

Discussion This value is nil if any of the type-erased elements of the path don’t conform to the Codable protocol.

## See Also

### Encoding a path

- [NavigationPath.CodableRepresentation](swiftui/navigationpath/codablerepresentation.md)
