---
title: "coachingOverlayViewDidDeactivate(_:)"
framework: arkit
role: symbol
role_heading: Instance Method
path: "arkit/arcoachingoverlayviewdelegate/coachingoverlayviewdiddeactivate(_:)"
---

# coachingOverlayViewDidDeactivate(_:)

Tells you when the coaching experience is completely deactivated.

## Declaration

```swift
optional func coachingOverlayViewDidDeactivate(_ coachingOverlayView: ARCoachingOverlayView)
```

## Discussion

Discussion Implement this function to do any custom actions your app requires to begin the AR experience. For example, when coaching is deactivated, your app might restore custom UI. When the coaching overlay is deactivating, isActive is false. If the animated property of setActive(_:animated:) is true, isActive and isHidden are false while the coaching overlay is fading out. When the coaching overlay is deactivated without animation, or when the animation finishes, ARKit sends a  coachingOverlayViewDidDeactivate(_:) notification.

## See Also

### Enabling Coaching

- [coachingOverlayViewWillActivate(_:)](arkit/arcoachingoverlayviewdelegate/coachingoverlayviewwillactivate(_:).md)
