Skip to content

custom additionalInputViewBottomConstraintConstant #1844

@Jacky-LinPeng

Description

@Jacky-LinPeng

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

==============================
Hello, can you do the bottom area height customization support when the keyboard is dismiss

MessagesViewController+Keyboard
Realization and support custom additionalInputViewBottomConstraintConstant, similar additionalBottomSpace

callbacks[.willHide] = { [weak self] (notification) in
        guard notification.isForCurrentApp else { return }
        self?.justDidWillHide = true
        self?.animateAlongside(notification) { [weak self] in
            self?.constraints?.bottom?.constant = self?.additionalInputViewBottomConstraintConstant() ?? 0
            self?.inputAccessoryView?.superview?.layoutIfNeeded()
        }
        DispatchQueue.main.async {
            self?.justDidWillHide = false
        }
    }

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions