<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UINavigationBar/popItem(animated:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UINavigationBar(im)popNavigationItemAnimated:"
  },
  "title" : "popItem(animated:)"
}
-->

# popItem(animated:)

Pops the top item from the navigation bar’s stack and updates the UI.

```
func popItem(animated: Bool) -> UINavigationItem?
```

## Parameters

`animated`

<doc://com.apple.documentation/documentation/Swift/true> if the navigation bar should be animated; otherwise, <doc://com.apple.documentation/documentation/Swift/false>.

## Return Value

The top item that was popped.

## Discussion

Popping a navigation item removes the top item from the stack and replaces it with the back item. The back item’s title is centered on the navigation bar and its other properties are displayed.

---

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)