Skip to content

Commit

Permalink
通知历史记录支持点击链接,支持长按选择复制
Browse files Browse the repository at this point in the history
close: #140
  • Loading branch information
Finb committed Jul 25, 2023
1 parent 49ae1ea commit b8e48f4
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions View/MessageTableViewCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,15 @@ class MessageTableViewCell: BaseTableViewCell<MessageTableViewCellViewModel> {
return label
}()

let bodyLabel: UILabel = {
let label = UILabel()
let bodyLabel: UITextView = {
let label = UITextView()
label.isEditable = false
label.dataDetectorTypes = [.phoneNumber, .link]
label.isScrollEnabled = false
label.textContainerInset = .zero
label.textContainer.lineFragmentPadding = 0
label.font = RobotoFont.regular(with: 14)
label.textColor = BKColor.grey.darken4
label.numberOfLines = 0
return label
}()

Expand Down

0 comments on commit b8e48f4

Please sign in to comment.