[iOS] Added data detection to bookmarks description

https://jira.mail.ru/browse/MAPSME-14866
This commit is contained in:
Alexander Boriskov 2020-09-18 15:14:59 +03:00 committed by mpimenov
parent c842f5d4c4
commit 281a27c71e

View file

@ -103,6 +103,7 @@ final class ExpandableLabel: UIView {
textView.attributedText = attributedText
textView.setContentHuggingPriority(contentHuggingPriority(for: .vertical), for: .vertical)
textView.backgroundColor = .clear
textView.dataDetectorTypes = [.link, .phoneNumber]
expandLabel.setContentHuggingPriority(contentHuggingPriority(for: .vertical), for: .vertical)
expandLabel.font = font
expandLabel.textColor = expandColor