added property to help with instrinsic size

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2022-12-01 11:34:24 -06:00
parent a4a560ecd7
commit aacc2ca760
2 changed files with 2 additions and 0 deletions

View File

@ -76,6 +76,7 @@ open class TextLink: Control, Buttonable {
//pin stackview to edges
label.pinToSuperView()
label.numberOfLines = 1
label.preferredMaxLayoutWidth = 0
heightConstraint = heightAnchor.constraint(equalToConstant: height)
heightConstraint?.isActive = true
}

View File

@ -86,6 +86,7 @@ open class TextLinkCaret: Control, Buttonable {
label.pinToSuperView()
label.numberOfLines = 1
label.preferredMaxLayoutWidth = 0
}