Contents

onWristDate

The date and time that the user puts their Apple Watch on their wrist.

Declaration

var onWristDate: Date? { get }

Discussion

Use this property to compute the duration that the user wears their Apple Watch.

The initial value of the onWristDate property is nil and the offWristDate property is the current date. The system changes the value of these properties as follows:

  • When the user puts on their Apple Watch, the onWristDate property becomes the current date and the offWristDate property remains the same.

  • When the user takes off their Apple Watch, the offWristDate property becomes the current date, and the onWristDate property remains the same.

See Also

Inspecting Watch Configuration