---
title: accessibilityPerformMagicTap()
framework: objectivec
role: symbol
role_heading: Instance Method
path: objectivec/nsobject-swift.class/accessibilityperformmagictap()
---

# accessibilityPerformMagicTap()

Performs a salient action.

## Declaration

```swift
@MainActor func accessibilityPerformMagicTap() -> Bool
```

## Return Value

Return Value YES if the magic tap action succeeds; otherwise, NO. By default, this method returns NO.

## Discussion

Discussion The exact action performed by this method depends your app, typically toggling the most important state of the app. For example, in the Phone app it answers and ends phone calls, in the Music app it plays and pauses playback, in the Clock app it starts and stops a timer, and in the Camera app it takes a picture.

## See Also

### Performing an action

- [accessibilityActivate()](objectivec/nsobject-swift.class/accessibilityactivate().md)
- [accessibilityIncrement()](objectivec/nsobject-swift.class/accessibilityincrement().md)
- [accessibilityDecrement()](objectivec/nsobject-swift.class/accessibilitydecrement().md)
- [accessibilityScroll(_:)](objectivec/nsobject-swift.class/accessibilityscroll(_:).md)
- [accessibilityPerformEscape()](objectivec/nsobject-swift.class/accessibilityperformescape().md)
