Instance Property

isAutorotating

A Boolean value that determines whether the interface automatically rotates when the user flips their wrist.

Declaration

var isAutorotating: Bool { get set }

Discussion

Defaults to false.

Normally, when a user rotates their wrist--for example, to show a watchOS app to another person--the watch is likely to interpret this motion as dropping the wrist and may put the app to sleep. When autorotation is enabled, watchOS instead keeps the interface awake and rotates the content so that it is oriented properly for the viewer.

Do not enable autorotation indefinitely. Instead, enable it selectively on a specific interface controller that the user is likely to share. For example, in the interface controller's willActivate() method, set this property to true. In the didDeactivate() method, set it back to false.

See Also

Managing the User Interface

var isAutorotated: Bool

A Boolean value that indicates whether the user interface is currently rotated so that it is properly oriented for another viewer.

func enableWaterLock()

Disables the Apple Watch touch screen to prevent accidental taps while the watch is submerged.

Deprecated