From 9c3fbe9a84bb3b3530b2bd809603637668a081ff Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Wed, 23 Aug 2023 16:56:39 -0500 Subject: [PATCH] fixed issue Signed-off-by: Matt Bruce --- VDS/Components/Buttons/TextLink/TextLink.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/VDS/Components/Buttons/TextLink/TextLink.swift b/VDS/Components/Buttons/TextLink/TextLink.swift index b4d8a745..8b6ea74b 100644 --- a/VDS/Components/Buttons/TextLink/TextLink.swift +++ b/VDS/Components/Buttons/TextLink/TextLink.swift @@ -75,13 +75,14 @@ open class TextLink: ButtonBase { super.setup() isAccessibilityElement = true accessibilityTraits = .link + if let titleLabel { addSubview(line) line.pinLeading(titleLabel.leadingAnchor) line.pinTrailing(titleLabel.trailingAnchor) line.pinTop(titleLabel.bottomAnchor) line.pinBottom(bottomAnchor, 0, .defaultHigh) - lineHeightConstraint = line.heightAnchor.constraint(equalToConstant: 1.0) + lineHeightConstraint = line.height(constant: 1) lineHeightConstraint?.isActive = true } }