minor fix on remove stack view's subviews
This commit is contained in:
parent
9d795d4bfb
commit
acddafd131
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue