nathantannar4 / InputBarAccessoryView

A simple and easily customizable InputAccessoryView for making powerful input bars with autocomplete and attachments
MIT License
1.15k stars 229 forks source link

Keyboard weirdly shrink to fingertip position when sliding on the emoji keyboard #216

Closed hyouuu closed 3 years ago

hyouuu commented 3 years ago

Describe the bug Keyboard weirdly shrink to fingertip position when sliding on the emoji keyboard. Additionally, after the InputBarAccessoryView is shown once, when focusing on other normal textField etc, sliding on the emoji keyboard would cause the same problem to occur (it works normally if InputBarAccessoryView is never shown)

To Reproduce Steps/code to reproduce the behavior:

    lazy var messageInputBar = InputBarAccessoryView()
    override var canBecomeFirstResponder: Bool {
        return true
    }

    override open var inputAccessoryView: UIView? {
        return messageInputBar
    }

Just focus on the input bar, change to the system emoji keyboard, and slide to the left on the emojis

Expected behavior emojis slide and you can select emojis in the next pages

Environment

hyouuu commented 3 years ago

Sorry it was actually caused by setting UIScrollView.appearance().keyboardDismissMode = .interactive in SwiftUI for some reason, and not actually a problem with this