I have a custom UIViewController
in which I have overridden inputAccessoryView
to return a view as follows-
extension LoginViewController {
override var inputAccessoryView: UIView? {
CustomToolbar()
}
}
The inputAccessoryView
is shown when an UIAlertController
is presented by the view controller.
Can anyone point out how to prevent inputAccessoryView
from being shown when an alert is presented?
Copyright Notice:Content Author:「user11497206」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/60053541/how-to-prevent-inputaccessoryview-of-a-view-controller-from-being-shown-when-an