Appium/Selenium help ? : hiding the keyboard on iOS simulator

I want to hide keyboard on simulator
appDriver.hideKeyboard();
is not working for me.

Simulator : iPhone 8
Version : 13.3
Appium : 1.17.0