<!--
{
  "availability" : [
    "iOS: 17.1.0 -",
    "iPadOS: 17.1.0 -",
    "macCatalyst: 17.1.0 -",
    "macOS: 14.1.0 -",
    "tvOS: 17.1.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 10.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/SearchPresentationToolbarBehavior/avoidHidingContent",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI33SearchPresentationToolbarBehaviorV18avoidHidingContentACvpZ"
  },
  "title" : "avoidHidingContent"
}
-->

# avoidHidingContent

The avoid hiding content behavior.

```
static var avoidHidingContent: SearchPresentationToolbarBehavior { get }
```

## Discussion

In iOS, this will avoid hiding content in the toolbar as
it adapts to a search presentation. This has no effect on other
platforms.

---

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)