One Logo Pool Ball
SwiftUICore · IOS API REFERENCE

DeviceHingeContext

struct · iOS 27.1+ · SDK 27.1

struct DeviceHingeContext

A type describing the context of hinges on the device. You use this type with the ``View/onHingeChange(_:)`` view modifier.

Members (2)

get · iOS 27.1+

hinge

TypeScript
get hinge(): (DeviceHinge) | null
Swift declaration
var hinge: DeviceHinge?

The current hinge of the device.

set · iOS 27.1+

hinge

TypeScript
set hinge(value: (DeviceHinge) | null)
Swift declaration
var hinge: DeviceHinge?

The current hinge of the device.

Skipped declarations

No declarations were skipped in this snapshot.

All SwiftUICore types →