我想提供在UITextView
中检测到的特定字体的链接。
我尝试了以下代码。
let linkAttributes: [String : Any] = [NSAttributedStringKey.foregroundColor.rawValue: UIColor.humanBlue(), NSAttributedStringKey.font.rawValue: UIFont.bbyFont(for: AppFont.medium, sizeClass: .m)]
infoLabelTextview.linkTextAttributes = linkAttributes
但是它仅更改textcolor
。谁能帮我这个忙..