<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GameController",
  "identifier" : "/documentation/GameController/GameControllerEventHandlingOptions/receivesEventsInView(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Game Controller",
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:23_GameController_SwiftUI0aB20EventHandlingOptionsV20receivesEventsInViewyACSbFZ"
  },
  "title" : "receivesEventsInView(_:)"
}
-->

# receivesEventsInView(_:)

A Boolean option that determines whether events are delivered
exclusively through the GameController framework.

```
static func receivesEventsInView(_ receivesEventsInView: Bool) -> GameControllerEventHandlingOptions
```

## Discussion

If `true`, events are delivered both through the Game Controller
framework and as SwiftUI events to your app’s views and gesture
recognizers.

If `false`, events are delivered **exclusively** through the Game
Controller framework.

---

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)