From b415aeafc5dc88a0fbfb8415cf1d5152ca95ac42 Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Wed, 13 Sep 2023 10:26:26 -0500 Subject: [PATCH] removed wrapper Signed-off-by: Matt Bruce --- VDS/Components/Tooltip/TooltipDialog.swift | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/VDS/Components/Tooltip/TooltipDialog.swift b/VDS/Components/Tooltip/TooltipDialog.swift index 6985cfe9..b79c453e 100644 --- a/VDS/Components/Tooltip/TooltipDialog.swift +++ b/VDS/Components/Tooltip/TooltipDialog.swift @@ -37,6 +37,7 @@ open class TooltipDialog: View, UIScrollViewDelegate { private let contentStackView = UIStackView().with { $0.translatesAutoresizingMaskIntoConstraints = false $0.axis = .vertical + $0.alignment = .leading $0.distribution = .fillProportionally $0.spacing = 0 } @@ -177,16 +178,7 @@ open class TooltipDialog: View, UIScrollViewDelegate { if var surfaceable = contentView as? Surfaceable { surfaceable.surface = surface } - let wrapper = View() - wrapper.addSubview(contentView) - contentView - .pinTop() - .pinLeading() - .pinBottom() - .pinTrailingLessThanOrEqualTo() - - contentView.setNeedsLayout() - contentStackView.addArrangedSubview(wrapper) + contentStackView.addArrangedSubview(contentView) addedContent = true }