ISEmojiView icon indicating copy to clipboard operation
ISEmojiView copied to clipboard

Delete button does not appear

Open moshegottlieb opened this issue 3 years ago • 3 comments

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.

moshegottlieb avatar Oct 31 '22 07:10 moshegottlieb

YES, the xib constraints are bad.

hupengfei-hinterstellar avatar Dec 22 '22 07:12 hupengfei-hinterstellar

YES, the xib constraints are bad.

I added constraints its work well.

PAVUNRAJ avatar Apr 12 '23 10:04 PAVUNRAJ

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

cultlee avatar Nov 30 '23 10:11 cultlee