InputBarAccessoryView icon indicating copy to clipboard operation
InputBarAccessoryView copied to clipboard

Issue after closing keyboard

Open xsoti opened this issue 5 years ago • 5 comments

After I close keyboard by calling resignFirstResponder() on inputTextView or becomeFirstResponder() on ViewController I got error "rejected resignFirstResponder when being removed from hierarchy". It wouldn't be so bad but when I set keyboardAppearance to .dark it became white during hiding.

I added code for hiding keyboard to Project Example: download Changes are only on CommonTableViewController.swift file so you can check what I'm talking about.

xsoti avatar Jun 12 '20 20:06 xsoti

I have a subclass of UIViewController in this framework that shows how you correctly hide/show. Can you try that method?

nathantannar4 avatar Jun 13 '20 03:06 nathantannar4

Hey nathantannar4

I have check READMEPreviewViewController which subclass from InputBarViewController and it has this same issue I described above.

xsoti avatar Jun 16 '20 08:06 xsoti

I have checked Example project and it also gives same warning.

Example[32232:602841] [View] First responder warning: <InputBarAccessoryView.InputTextView: 0x7fca50079600;
baseClass = UITextView; frame = (0 0; 330 38); text = '';
clipsToBounds = YES;
gestureRecognizers = <NSArray: 0x60000147d200>;
layer = <CALayer: 0x600001a05200>; contentOffset: {0, 0};
contentSize: {28, 36.5}; adjustedContentInset: {0, 0, 0, 0}>
rejected resignFirstResponder when being removed from hierarchy

It also gives the same warning message when you dismiss keyboard in interactive mode.

hamzaozturk avatar Jul 05 '20 07:07 hamzaozturk

Seems that issue also causes small ui freeze after keyboard is dismissed

Leta0n avatar Jul 14 '20 13:07 Leta0n

Does anyone have any progress here?

Leta0n avatar Aug 01 '20 14:08 Leta0n

No longer seeing this warning from the example project.

This issue has become stale/outdated. Please re-open if desired.

nathantannar4 avatar Oct 05 '22 07:10 nathantannar4