<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/View/invalidatableContent(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI4ViewPAAE20invalidatableContentyQrSbF"
  },
  "title" : "invalidatableContent(_:)"
}
-->

# invalidatableContent(_:)

Mark the receiver as their content might be invalidated.

```
nonisolated func invalidatableContent(_ invalidatable: Bool = true) -> some View
```

## Parameters

`invalidatable`

Whether the receiver content might be invalidated.

## Discussion

Use this modifier to annotate views that display values that are derived
from the current state of your data and might be invalidated in
response of, for example, user interaction.

The view will change its appearance when
[`invalidated`](/documentation/SwiftUI/RedactionReasons/invalidated) is present in the environment.

In an interactive widget a view is invalidated from the moment the user
interacts with a control on the widget to the moment when a new timeline
update has been presented.

---

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)