mirror of
https://github.com/MessageKit/MessageKit.git
synced 2026-02-06 19:03:19 +00:00
Merge pull request #342 from zhongwuzw/FIxInputBarItemCrash
Fix crash for escaping block
This commit is contained in:
@@ -183,8 +183,8 @@ open class InputBarButtonItem: UIButton {
|
||||
open func setSize(_ newValue: CGSize?, animated: Bool) {
|
||||
size = newValue
|
||||
if animated, let position = parentStackViewPosition {
|
||||
messageInputBar?.performLayout(animated) {
|
||||
self.messageInputBar?.layoutStackViews([position])
|
||||
messageInputBar?.performLayout(animated) { [weak self] in
|
||||
self?.messageInputBar?.layoutStackViews([position])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user