---
title: equatable()
framework: swiftui
role: symbol
role_heading: Instance Method
path: swiftui/view/equatable()
---

# equatable()

Prevents the view from updating its child view when its new value is the same as its old value.

## Declaration

```swift
nonisolated func equatable() -> EquatableView<Self>
```

## See Also

### Managing the view hierarchy

- [id(_:)](swiftui/view/id(_:).md)
- [tag(_:includeOptional:)](swiftui/view/tag(_:includeoptional:).md)
