<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GameController",
  "identifier" : "/documentation/GameController/GCMotion/hasGravityAndUserAcceleration",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Game Controller"
    ],
    "preciseIdentifier" : "c:objc(cs)GCMotion(py)hasGravityAndUserAcceleration"
  },
  "title" : "hasGravityAndUserAcceleration"
}
-->

# hasGravityAndUserAcceleration

A Boolean value that indicates whether the controller provides gravity and user acceleration data.

```
var hasGravityAndUserAcceleration: Bool { get }
```

## Discussion

<doc://com.apple.documentation/documentation/Swift/true> if the controller provides both gravity and user acceleration data; otherwise, <doc://com.apple.documentation/documentation/Swift/false>.

## See Also

[`gravity`](/documentation/GameController/GCMotion/gravity)

The gravity acceleration vector from the controller’s reference frame.

[`userAcceleration`](/documentation/GameController/GCMotion/userAcceleration)

The acceleration that the user applies to the controller.



---

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)