<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/EquatableView",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI13EquatableViewV"
  },
  "title" : "EquatableView"
}
-->

# EquatableView

A view type that compares itself against its previous value and prevents its
child updating if its new value is the same as its old value.

```
@frozen nonisolated struct EquatableView<Content> where Content : Equatable, Content : View
```

## Topics

### Creating an equatable view

[`init(content:)`](/documentation/SwiftUI/EquatableView/init(content:))

[`content`](/documentation/SwiftUI/EquatableView/content)



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)