<!--
{
  "availability" : [
    "iOS: 3.2.0 - 8.3.0",
    "iPadOS: 3.2.0 - 8.3.0",
    "macCatalyst: 13.1.0 - 13.1.0"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIActionSheet/show(from:animated:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIActionSheet(im)showFromBarButtonItem:animated:"
  },
  "title" : "show(from:animated:)"
}
-->

# show(from:animated:)

Displays an action sheet that originates from the specified bar button item.

```
func show(from item: UIBarButtonItem, animated: Bool)
```

## Parameters

`item`

The bar button item from which the action sheet originates.

`animated`

Specify <doc://com.apple.documentation/documentation/Swift/true> to animate the presentation of the action sheet or <doc://com.apple.documentation/documentation/Swift/false> to present it immediately without any animation effects.

## Discussion

On iPad, this method presents the action sheet in a popover and adds the toolbar that owns the button to the popover’s list of passthrough views. Thus, taps in the toolbar result in the action methods of the corresponding toolbar items being called. If you want the popover to be dismissed when a different toolbar item is tapped, you must implement that behavior in your action handler methods.

---

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)