photo-editor icon indicating copy to clipboard operation
photo-editor copied to clipboard

Possible bug with keyboard...

Open DevStreamLine opened this issue 3 years ago • 1 comments

Hello,

I have noticed that if I have the add text icon enabled and I tap on the 'T' to add text. It works fine, but when the keyboard appears you can type and then tap the hide keyboard button on the keyboard. When that action is performed the keyboard disappears and the image editing controls re-appear. When this happenens the Done button is hidden and you can not do anything because it think you are still in text edit mode.

The only fix is to tap the edit set 'T' icon again but that is not very user friendly.

So, is it possible to change the keyboard so the hide button is gone, or not have the edit controls hide the done button?

DevStreamLine avatar Jul 06 '21 15:07 DevStreamLine

I found a solution to remove "Done" button from keyboard, using the package IQKeyboardManagerSwift

pod 'IQKeyboardManagerSwift', '~> 6.5'

Initialize those settings at AppDelegate.swift

IQKeyboardManager.shared.enable = true
IQKeyboardManager.shared.shouldResignOnTouchOutside = false
IQKeyboardManager.shared.disabledToolbarClasses.append(PhotoEditorViewController.self)

AlexisLampouridis avatar Jul 20 '21 12:07 AlexisLampouridis