From 281a27c71e03b7b2097bbb94ffb737e47adae195 Mon Sep 17 00:00:00 2001 From: Alexander Boriskov Date: Fri, 18 Sep 2020 15:14:59 +0300 Subject: [PATCH] [iOS] Added data detection to bookmarks description https://jira.mail.ru/browse/MAPSME-14866 --- iphone/Maps/UI/PlacePage/Views/ExpandableLabel.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/iphone/Maps/UI/PlacePage/Views/ExpandableLabel.swift b/iphone/Maps/UI/PlacePage/Views/ExpandableLabel.swift index 620d3652c2..598a489421 100644 --- a/iphone/Maps/UI/PlacePage/Views/ExpandableLabel.swift +++ b/iphone/Maps/UI/PlacePage/Views/ExpandableLabel.swift @@ -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