linkTextAttributes在Swift中不适用于字体

时间:2018-07-10 15:41:11

标签: swift hyperlink uitextview

我想提供在UITextView中检测到的特定字体的链接。

我尝试了以下代码。

let linkAttributes: [String : Any] = [NSAttributedStringKey.foregroundColor.rawValue: UIColor.humanBlue(), NSAttributedStringKey.font.rawValue: UIFont.bbyFont(for: AppFont.medium, sizeClass: .m)]
infoLabelTextview.linkTextAttributes = linkAttributes

但是它仅更改textcolor。谁能帮我这个忙..

0 个答案:

没有答案