minor fix on remove stack view's subviews

This commit is contained in:
Ryan Zhao 2022-05-19 14:34:21 +10:00
parent 9d795d4bfb
commit acddafd131
1 changed files with 1 additions and 0 deletions

View File

@ -32,6 +32,7 @@ final class ReactionContainerView : UIView {
public func update(_ reactions: [(String, (Int, Bool))]) {
for subview in containerView.arrangedSubviews {
containerView.removeArrangedSubview(subview)
subview.removeFromSuperview()
}
let stackView = UIStackView()
stackView.axis = .horizontal