Contents

hideOverlayTemplate(animated:completion:)

Dismiss the current overlay template, optionally animating the dismissal.

Declaration

func hideOverlayTemplate(animated: Bool, completion: ((Bool, (any Error)?) -> Void)? = nil)
func hideOverlayTemplate(animated: Bool) async throws -> Bool

Discussion

The completion block will be called after the template has been dismissed. If the template was dismissed successfully, the boolean parameter will be YES. Otherwise, the boolean parameter will be NO and an @c NSError will be provided describing the failure.