---
title: "show(from:in:animated:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uiactionsheet/show(from:in:animated:)"
---

# show(from:in:animated:)

Displays an action sheet that originates from the specified view.

## Declaration

```swift
func show(from rect: CGRect, in view: UIView, animated: Bool)
```

## Parameters

- `rect`: The portion of view from which to originate the action sheet.
- `view`: The view from which to originate the action sheet.
- `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

Discussion On iPad, this method displays the action sheet in a popover whose arrow points to the specified rectangle of the view. The popover does not overlap the specified rectangle.

## See Also

### Presenting the action sheet

- [show(from:)](uikit/uiactionsheet/show(from:)-9i3tw.md)
- [show(from:)](uikit/uiactionsheet/show(from:)-1p4ap.md)
- [show(in:)](uikit/uiactionsheet/show(in:).md)
- [show(from:animated:)](uikit/uiactionsheet/show(from:animated:).md)
