---
title: searchBarPlacement
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uinavigationitem/searchbarplacement-swift.property
---

# searchBarPlacement

The placement of the search bar in the navigation bar.

## Declaration

```swift
var searchBarPlacement: UINavigationItem.SearchBarPlacement { get }
```

## Discussion

Discussion Use this property to determine the actual search bar placement when the preferredSearchBarPlacement is UINavigationItem.SearchBarPlacement.automatic. This property only applies when the navigation item has a searchController.

## See Also

### Integrating search into your interface

- [searchController](uikit/uinavigationitem/searchcontroller.md)
- [hidesSearchBarWhenScrolling](uikit/uinavigationitem/hidessearchbarwhenscrolling.md)
- [preferredSearchBarPlacement](uikit/uinavigationitem/preferredsearchbarplacement.md)
- [UINavigationItem.SearchBarPlacement](uikit/uinavigationitem/searchbarplacement-swift.enum.md)
- [searchBarPlacementAllowsExternalIntegration](uikit/uinavigationitem/searchbarplacementallowsexternalintegration.md)
- [searchBarPlacementAllowsToolbarIntegration](uikit/uinavigationitem/searchbarplacementallowstoolbarintegration.md)
- [searchBarPlacementBarButtonItem](uikit/uinavigationitem/searchbarplacementbarbuttonitem.md)
