<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/SearchFieldPlacement/navigationBarDrawer",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI20SearchFieldPlacementV19navigationBarDrawerACvpZ"
  },
  "title" : "navigationBarDrawer"
}
-->

# navigationBarDrawer

The search field appears in the navigation bar.

```
static let navigationBarDrawer: SearchFieldPlacement
```

## Discussion

The field appears below any navigation bar title and uses the
[`automatic`](/documentation/SwiftUI/SearchFieldPlacement/NavigationBarDrawerDisplayMode/automatic) display mode to configure
when to hide the search field. To choose a different display mode,
use [`navigationBarDrawer(displayMode:)`](/documentation/SwiftUI/SearchFieldPlacement/navigationBarDrawer(displayMode:)) instead.

---

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)