This commit is contained in:
Kevin G Christiano 2021-02-01 14:41:51 -05:00
parent 3872591d50
commit a5febf586c
2 changed files with 1 additions and 9 deletions

View File

@ -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)
}

View File

@ -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
}
//--------------------------------------------------