Merge pull request #342 from zhongwuzw/FIxInputBarItemCrash

Fix crash for escaping block
This commit is contained in:
Steven Deutsch
2017-11-09 21:18:46 -06:00
committed by GitHub
+2 -2
View File
@@ -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])
}
}
}