<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ARKit",
  "identifier" : "/documentation/ARKit/ARCoachingOverlayViewDelegate/coachingOverlayViewDidDeactivate(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "ARKit"
    ],
    "preciseIdentifier" : "c:objc(pl)ARCoachingOverlayViewDelegate(im)coachingOverlayViewDidDeactivate:"
  },
  "title" : "coachingOverlayViewDidDeactivate(_:)"
}
-->

# coachingOverlayViewDidDeactivate(_:)

Tells you when the coaching experience is completely deactivated.

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

## 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`](/documentation/ARKit/ARCoachingOverlayView/isActive) is <doc://com.apple.documentation/documentation/Swift/false>. If the `animated` property of [`setActive(_:animated:)`](/documentation/ARKit/ARCoachingOverlayView/setActive(_:animated:)) is <doc://com.apple.documentation/documentation/Swift/true>, [`isActive`](/documentation/ARKit/ARCoachingOverlayView/isActive) and <doc://com.apple.documentation/documentation/UIKit/UIView/isHidden> are <doc://com.apple.documentation/documentation/Swift/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(_:)`](/documentation/ARKit/ARCoachingOverlayViewDelegate/coachingOverlayViewDidDeactivate(_:)) notification.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)