Contents

setActive(_:animated:)

Controls whether coaching is in progress.

Declaration

func setActive(_ active: Bool, animated: Bool)

Parameters

  • active:

    A flag you set to indicate whether the coaching overlay should activate or deactivate.

  • animated:

    A flag that when True, fades the coaching overlay in or out. When you pass a value of False, the coaching overlay shows or hides instantly.

Discussion

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 notifies you by calling coachingOverlayViewDidDeactivate(_:).

See Also

Activating the View