anchored line
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
045babc965
commit
8b1f5db3e6
@ -75,12 +75,12 @@ open class TextLink: ButtonBase {
|
|||||||
super.setup()
|
super.setup()
|
||||||
isAccessibilityElement = true
|
isAccessibilityElement = true
|
||||||
accessibilityTraits = .link
|
accessibilityTraits = .link
|
||||||
//titleEdgeInsets = .init(top: 0, left: 0, bottom: 2, right: 0)
|
|
||||||
if let titleLabel {
|
if let titleLabel {
|
||||||
addSubview(line)
|
addSubview(line)
|
||||||
line.pinLeading(titleLabel.leadingAnchor)
|
line.pinLeading(titleLabel.leadingAnchor)
|
||||||
line.pinTrailing(titleLabel.trailingAnchor)
|
line.pinTrailing(titleLabel.trailingAnchor)
|
||||||
line.pinTop(titleLabel.bottomAnchor)
|
line.pinTop(titleLabel.bottomAnchor)
|
||||||
|
line.pinBottom(bottomAnchor)
|
||||||
lineHeightConstraint = line.heightAnchor.constraint(equalToConstant: 1.0)
|
lineHeightConstraint = line.heightAnchor.constraint(equalToConstant: 1.0)
|
||||||
lineHeightConstraint?.isActive = true
|
lineHeightConstraint?.isActive = true
|
||||||
titleLabel.debugBorder(show: true)
|
titleLabel.debugBorder(show: true)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user