From 5570507f27b0371f724fb0db34598694dbf6cde4 Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Wed, 24 Apr 2024 16:56:47 -0500 Subject: [PATCH] remove from superView before adding as a subview Signed-off-by: Matt Bruce --- VDS/Components/TileContainer/TileContainer.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/VDS/Components/TileContainer/TileContainer.swift b/VDS/Components/TileContainer/TileContainer.swift index 6d3f5dd6..34f4dbd4 100644 --- a/VDS/Components/TileContainer/TileContainer.swift +++ b/VDS/Components/TileContainer/TileContainer.swift @@ -350,6 +350,7 @@ open class TileContainerBase: Control where Padding /// This will place a view within the contentView of this component. public func addContentView(_ view: UIView, shouldPin: Bool = true) { + view.removeFromSuperview() containerView.addSubview(view) if shouldPin { view.pinToSuperView()