---
title: "willPresent(_:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uiactionsheetdelegate/willpresent(_:)"
---

# willPresent(_:)

Sent to the delegate before an action sheet is presented to the user.

## Declaration

```swift
optional func willPresent(_ actionSheet: UIActionSheet)
```

## Parameters

- `actionSheet`: The action sheet that is about to be displayed.

## See Also

### Customizing behavior

- [didPresent(_:)](uikit/uiactionsheetdelegate/didpresent(_:).md)
- [actionSheet(_:willDismissWithButtonIndex:)](uikit/uiactionsheetdelegate/actionsheet(_:willdismisswithbuttonindex:).md)
- [actionSheet(_:didDismissWithButtonIndex:)](uikit/uiactionsheetdelegate/actionsheet(_:diddismisswithbuttonindex:).md)
