Skip to content

Hardware keyboard has unexpected layout #5

@ricocrescenzio95

Description

@ricocrescenzio95

Describe the bug

When an hardware keyboard is connected (and the software one is hidden by the system), on iOS 13/15 there are
unexpected layout "jumps" of inputAccessoryView when switching between text fields with no keyboard and text fields with a custom inputView.
On iOS 14, the system call infinitely layoutSubviews leading to a frozen app.

To Reproduce

Steps to reproduce the behavior:

  1. Create a bunch of SUITextField
  2. Add custom inputView and inputAccessoryView to some of them
  3. Switch between text fields4.

Using a simulator, you can easily simulate an hardware keyboard.

Expected behavior

  • The inputAccessoryView layout shouldn't jump and should have correct height when switching between text fields.
  • Also, on iOS 14, it shouldn't re-layout infinitely.

Screenshots

Registrazione.schermo.2022-04-15.alle.14.47.59.mov

Device

  • Device: both physical and simulator.
  • OS: [iOS 13.x-15.x jump / iOS 14.x loop]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions