---
title: "navigationBar(_:shouldPush:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uinavigationbardelegate/navigationbar(_:shouldpush:)"
---

# navigationBar(_:shouldPush:)

Returns a Boolean value indicating whether the navigation bar should push an item.

## Declaration

```swift
optional func navigationBar(_ navigationBar: UINavigationBar, shouldPush item: UINavigationItem) -> Bool
```

## Parameters

- `navigationBar`: The navigation bar that the item is being pushed onto.
- `item`: The navigation item that is being pushed.

## Return Value

Return Value true if the item should be pushed; otherwise, false.

## Discussion

Discussion Sent to the delegate before pushing an item onto the navigation bar.

## See Also

### Pushing items

- [navigationBar(_:didPush:)](uikit/uinavigationbardelegate/navigationbar(_:didpush:).md)
