podkovyrin / Keyboardy

UIViewController extension for convenient keyboard management.
MIT License
113 stars 11 forks source link

Doesn't work properly if view was presented "Form Sheet" or "Page Sheet" #20

Closed ghost closed 4 years ago

ghost commented 4 years ago

Please check this.

podkovyrin commented 4 years ago

@projectvim The issue you are referring to doesn't have any details on how Keyboardy is related to it. Please, provide an example project which reproduces the wrong behavior.

ghost commented 4 years ago

@podkovyrin I have modified Example to show the bug. Check it here.

podkovyrin commented 4 years ago

@projectvim This is not a bug in the library. It's up to the client's code how to handle the keyboard notification. In your case, I wouldn't use UIModalPresentationStyle.formSheet with a text field on the bottom since it's rather impossible to customize its layout/position on the screen because it's a system presentation you cannot tweak. I would rather do a controller with a look'n'feel of formSheet shown with a custom transition.

ghost commented 4 years ago

The problem is that I try to use it in an Autofill Extension where I don’t has control how is the view presented.

podkovyrin commented 4 years ago

I guess you can do the layout of that controller in a way when the text field is not covered with a keyboard then.