updated
This commit is contained in:
parent
3872591d50
commit
a5febf586c
@ -889,13 +889,6 @@ extension Label {
|
||||
/// Underlines the tappable region and stores the tap logic for interation.
|
||||
private func setTextLinkState(range: NSRange, actionBlock: @escaping ActionBlock) {
|
||||
|
||||
if clauses.isEmpty {
|
||||
// Replace the last whitespace with \u{00A0} No-break space.
|
||||
if let start = text?.lastIndex(of: " "), let end = text?.index(after: start) {
|
||||
text?.replaceSubrange(start..<end, with: "\u{00A0}")
|
||||
}
|
||||
}
|
||||
|
||||
setActionAttributes(range: range)
|
||||
appendActionableClause(range: range, actionBlock: actionBlock)
|
||||
}
|
||||
|
||||
@ -112,8 +112,7 @@ open class HeadlineBody: View {
|
||||
headlineLabel.updateView(size)
|
||||
messageLabel.updateView(size)
|
||||
let padding = MFStyler.defaultHorizontalPadding(forSize: size) * 2
|
||||
let maximumTextWidth = (size - (padding + Padding.Four))
|
||||
messageLabel.preferredMaxLayoutWidth = maximumTextWidth
|
||||
messageLabel.preferredMaxLayoutWidth = size - padding
|
||||
}
|
||||
|
||||
//--------------------------------------------------
|
||||
|
||||
Loading…
Reference in New Issue
Block a user