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

# navigationBar(_:shouldPop:)

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

## Declaration

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

## Parameters

- `navigationBar`: The navigation bar that the item is being popped from.
- `item`: The navigation item that is being popped.

## Return Value

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

## Discussion

Discussion Sent to the delegate before popping an item from the navigation bar.

## See Also

### Popping items

- [navigationBar(_:didPop:)](uikit/uinavigationbardelegate/navigationbar(_:didpop:).md)
