dismiss()
Dismisses the extension and marks it for termination.
Declaration
func dismiss()Discussion
Call this method to dismiss the extension. The system displays the keyboard if there is any content in the Messages app’s input field. If the input field is empty, the system dismisses the keyboard entirely.
This method also marks the extension as eligible for termination, causing the system to call the view controller’s willResignActive(with:) and didResignActive(with:) methods.