---
title: "addAction(target:selector:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uiupdatelink/addaction(target:selector:)"
---

# addAction(target:selector:)

Adds an action with the specified target and selector to the UI update link.

## Declaration

```swift
func addAction(target: Any, selector: Selector)
```

## Discussion

Discussion This method adds the action to the beforeCADisplayLinkDispatch phase. To specify a different phase, use addAction(to:target:selector:) instead.

## See Also

### Adding actions

- [addAction(handler:)](uikit/uiupdatelink/addaction(handler:).md)
- [addAction(to:handler:)](uikit/uiupdatelink/addaction(to:handler:).md)
- [addAction(to:target:selector:)](uikit/uiupdatelink/addaction(to:target:selector:).md)
- [UIUpdateActionPhase](uikit/uiupdateactionphase.md)
