From 3a3790d302fd0b2668924148facb1c8c8e6beeb2 Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Wed, 13 Sep 2023 10:22:20 -0500 Subject: [PATCH] fixed bug in tooltip contentView Signed-off-by: Matt Bruce --- VDS/Components/Tooltip/TooltipDialog.swift | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/VDS/Components/Tooltip/TooltipDialog.swift b/VDS/Components/Tooltip/TooltipDialog.swift index 5480c8c5..6985cfe9 100644 --- a/VDS/Components/Tooltip/TooltipDialog.swift +++ b/VDS/Components/Tooltip/TooltipDialog.swift @@ -149,9 +149,7 @@ open class TooltipDialog: View, UIScrollViewDelegate { backgroundColor = backgroundColorConfiguration.getColor(self) scrollView.indicatorStyle = surface == .light ? .black : .white - titleLabel.removeFromSuperview() - contentLabel.removeFromSuperview() - contentView?.removeFromSuperview() + contentStackView.arrangedSubviews.forEach { $0.removeFromSuperview() } titleLabel.surface = surface contentLabel.surface = surface