<!--
{
  "availability" : [
    "Xcode: 16.3.0 -",
    "tvOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "XCUIAutomation",
  "identifier" : "/documentation/XCUIAutomation/XCUIRemote",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "XCUIAutomation"
    ],
    "preciseIdentifier" : "c:objc(cs)XCUIRemote"
  },
  "title" : "XCUIRemote"
}
-->

# XCUIRemote

A class that simulates interaction with a physical remote control.

```
@MainActor class XCUIRemote
```

## Topics

### Accessing the simulated remote

[`shared`](/documentation/XCUIAutomation/XCUIRemote/shared)

The simulated physical remote control.

### Pressing remote buttons

[`press(_:)`](/documentation/XCUIAutomation/XCUIRemote/press(_:))

Sends a momentary press of a button on a physical remote control.

[`press(_:forDuration:)`](/documentation/XCUIAutomation/XCUIRemote/press(_:forDuration:))

Sends a press and hold of a button on a physical remote control, holding for the specified duration.

[`XCUIRemoteButton`](/documentation/XCUIAutomation/XCUIRemote/Button)

A button on a physical remote control.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)