addAction(handler:)
Adds an action with the specified handler to the UI update link.
Declaration
func addAction(handler: @escaping (UIUpdateLink, UIUpdateInfo) -> Void)Discussion
This method adds the action to the beforeCADisplayLinkDispatch phase. To specify a different phase, use addAction(to:handler:) instead.