Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete button does not appear #73

Open
moshegottlieb opened this issue Oct 31, 2022 · 3 comments
Open

Delete button does not appear #73

moshegottlieb opened this issue Oct 31, 2022 · 3 comments

Comments

@moshegottlieb
Copy link

Using version 0.3.3 (SPM).
The delete button is missing from the category view.

let keyboardSettings = KeyboardSettings(bottomType: .categories)
keyboardSettings.isShowPopPreview = true
keyboardSettings.needToShowAbcButton = false
keyboardSettings.needToShowDeleteButton = true
keyboardSettings.updateRecentEmojiImmediately = true

The delete button does not appear.
Using the pageControl bottom type and a delete button results in a crash.

@hupengfei-hinterstellar

YES, the xib constraints are bad.

@PAVUNRAJ
Copy link

YES, the xib constraints are bad.

I added constraints its work well.

@cultlee
Copy link

cultlee commented Nov 30, 2023

Adding the following code after initialization can solve this problem:

let bottomView = emojiView.subviews.last?.subviews.last
let collecitonViewToSuperViewTrailingConstraint = bottomView?.value(forKey: "collecitonViewToSuperViewTrailingConstraint") as? NSLayoutConstraint
collecitonViewToSuperViewTrailingConstraint?.priority = .defaultLow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants