This is fixed. The reason for this problem is IQKeyboardManager. All I had to was disable IQKeyboardManager for this view.