isaced / ISEmojiView

Emoji Keyboard for iOS
MIT License
518 stars 118 forks source link

Delete button does not appear #73

Open moshegottlieb opened 1 year ago

moshegottlieb commented 1 year ago

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 commented 1 year ago

YES, the xib constraints are bad.

PAVUNRAJ commented 1 year ago

YES, the xib constraints are bad.

I added constraints its work well.

cultlee commented 9 months ago

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