mirror of
https://github.com/MessageKit/MessageKit.git
synced 2026-02-06 19:03:19 +00:00
Fix MessageInputBar bottomAnchor issue
This commit is contained in:
@@ -365,9 +365,7 @@ open class MessageInputBar: UIView {
|
||||
guard let window = window else { return }
|
||||
|
||||
// bottomAnchor must be set to the window to avoid a memory leak issue
|
||||
bottomStackViewLayoutSet?.bottom?.isActive = false
|
||||
bottomStackViewLayoutSet?.bottom = bottomStackView.bottomAnchor.constraintLessThanOrEqualToSystemSpacingBelow(window.safeAreaLayoutGuide.bottomAnchor, multiplier: 1)
|
||||
bottomStackViewLayoutSet?.bottom?.isActive = true
|
||||
bottomAnchor.constraintLessThanOrEqualToSystemSpacingBelow(window.safeAreaLayoutGuide.bottomAnchor, multiplier: 1)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user