Disables the Apple Watch touch screen to prevent accidental taps while the watch is submerged.
- watchOS 4.0–6.1Deprecated
The following rules apply when using Water Lock:
You can only enable Water Lock when the app is running in the foreground during an active workout or location session.
The app must be running on a supported device (the
waterResistanceRating property must be set to
Water Lock remains active until the user unlocks it. You cannot programmatically unlock the watch.
Managing the User Interface
var isAutorotating: Bool
A Boolean value that determines whether the interface automatically rotates when the user flips their wrist.
var isAutorotated: Bool
A Boolean value that indicates whether the user interface is currently rotated so that it is properly oriented for another viewer.