<!--
{
  "availability" : [
    "iOS: 27.1.0 -",
    "iPadOS: 27.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/DeviceHingeContext",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI18DeviceHingeContextV"
  },
  "title" : "DeviceHingeContext"
}
-->

# DeviceHingeContext

A type describing the context of hinges on the device.

```
struct DeviceHingeContext
```

## Overview

You use this type with the `View/onHingeChange(_:)`
view modifier.

## Topics

### Getting hinge context information

[`var hinge: DeviceHinge?`](/documentation/SwiftUI/DeviceHingeContext/hinge)

The current hinge of the device.

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`Equatable`](/documentation/Swift/Equatable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

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)