---
title: "init(name:target:selector:)"
framework: uikit
role: symbol
role_heading: Initializer
path: "uikit/uiaccessibilitycustomaction/init(name:target:selector:)"
---

# init(name:target:selector:)

Creates a custom action object with the specified name, target, and selector.

## Declaration

```swift
init(name: String, target: Any?, selector: Selector)
```

## Parameters

- `name`: The localized name of the action. Provide a short and descriptive name for the action.
- `target`: The object that performs the action.
- `selector`: The selector of target to call when you want to perform the action. The method signature must take one of the following forms: - (BOOL)myPerformActionMethod - (BOOL)myPerformActionMethod:(UIAccessibilityCustomAction *)action

## Return Value

Return Value An initialized custom action object.

## See Also

### Creating a custom action

- [init(name:actionHandler:)](uikit/uiaccessibilitycustomaction/init(name:actionhandler:).md)
- [init(name:image:actionHandler:)](uikit/uiaccessibilitycustomaction/init(name:image:actionhandler:).md)
- [init(name:image:target:selector:)](uikit/uiaccessibilitycustomaction/init(name:image:target:selector:).md)
- [init(attributedName:actionHandler:)](uikit/uiaccessibilitycustomaction/init(attributedname:actionhandler:).md)
- [init(attributedName:target:selector:)](uikit/uiaccessibilitycustomaction/init(attributedname:target:selector:).md)
- [init(attributedName:image:actionHandler:)](uikit/uiaccessibilitycustomaction/init(attributedname:image:actionhandler:).md)
- [init(attributedName:image:target:selector:)](uikit/uiaccessibilitycustomaction/init(attributedname:image:target:selector:).md)
