Post

Replies

Boosts

Views

Activity

NSAttributedString link not working in iOS 14
NSAttributedString.Key.link not working when installed app on iOS 14 Beta 8 and iOS 14.0 (18A373) real devices. It is working fine on device running iOS 13.6 . It's weird as it is working fine in Simulator. I used below code for reference: let attributes: [NSAttributedString.Key: Any] = [NSAttributedString.Key.font: UIFont.systemFont(ofSize: 14), NSAttributedString.Key.foregroundColor: ColorConstant.kToolTipFontColor] let attributedText = NSMutableAttributedString(string: "An ABN is a unique 11 digit number that identifies your business to government & community.\n\nAerologix requires your ABN in order to generate GST invoices", attributes: attributes) attributedText.addAttribute(.link, value: "", range: NSRange(location: 3, length: 3)) self.label?.attributedText = attributedText Had anybody faced this issue yet?
2
0
1.9k
Sep ’20