removed wrapper

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2023-09-13 10:26:26 -05:00
parent 3a3790d302
commit b415aeafc5

View File

@ -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
}