---
title: id
framework: swiftui
role: symbol
role_heading: Instance Property
path: swiftui/subview/id-swift.property
---

# id

The unique identifier of the view.

## Declaration

```swift
nonisolated var id: Subview.ID { get }
```

## Discussion

Discussion This identifier persists across updates, changes to the order of subviews, etc. so can be used to track the lifetime of a subview.
