fixed issue
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
cfe0f6135b
commit
9c3fbe9a84
@ -75,13 +75,14 @@ open class TextLink: ButtonBase {
|
|||||||
super.setup()
|
super.setup()
|
||||||
isAccessibilityElement = true
|
isAccessibilityElement = true
|
||||||
accessibilityTraits = .link
|
accessibilityTraits = .link
|
||||||
|
|
||||||
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, 0, .defaultHigh)
|
line.pinBottom(bottomAnchor, 0, .defaultHigh)
|
||||||
lineHeightConstraint = line.heightAnchor.constraint(equalToConstant: 1.0)
|
lineHeightConstraint = line.height(constant: 1)
|
||||||
lineHeightConstraint?.isActive = true
|
lineHeightConstraint?.isActive = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user