Contents

showOverlayTemplate(_:animated:completion:)

Show a template as an overlay over the current template hierarchy. Only one overlay template may be shown at a time.

Declaration

func showOverlayTemplate(_ templateToShow: CPTemplate, animated: Bool, completion: ((Bool, (any Error)?) -> Void)? = nil)
func showOverlayTemplate(_ templateToShow: CPTemplate, animated: Bool) async throws -> Bool

Discussion

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