From 8b1f5db3e6f39e4f8dfd97df8ccb412343421b59 Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Thu, 8 Jun 2023 11:14:13 -0500 Subject: [PATCH] anchored line Signed-off-by: Matt Bruce --- VDS/Components/Buttons/TextLink/TextLink.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VDS/Components/Buttons/TextLink/TextLink.swift b/VDS/Components/Buttons/TextLink/TextLink.swift index 15d7dec9..f604cad9 100644 --- a/VDS/Components/Buttons/TextLink/TextLink.swift +++ b/VDS/Components/Buttons/TextLink/TextLink.swift @@ -75,12 +75,12 @@ open class TextLink: ButtonBase { super.setup() isAccessibilityElement = true accessibilityTraits = .link - //titleEdgeInsets = .init(top: 0, left: 0, bottom: 2, right: 0) if let titleLabel { addSubview(line) line.pinLeading(titleLabel.leadingAnchor) line.pinTrailing(titleLabel.trailingAnchor) line.pinTop(titleLabel.bottomAnchor) + line.pinBottom(bottomAnchor) lineHeightConstraint = line.heightAnchor.constraint(equalToConstant: 1.0) lineHeightConstraint?.isActive = true titleLabel.debugBorder(show: true)