Answers for "Cannot convert value of type '[UIFont]' to expected argument type '[NSAttributedString.Key : Any]'"

0

Cannot convert value of type '[UIFont]' to expected argument type '[NSAttributedString.Key : Any]'

let attributes = [NSAttributedString.Key.font:
    UIFont(name: "Helvetica-Bold", size: 15.0)!, 
    NSAttributedString.Key.foregroundColor: UIColor.white] as! [NSAttributedStringKey: Any]
Posted by: Guest on March-20-2022

Code answers related to "Cannot convert value of type '[UIFont]' to expected argument type '[NSAttributedString.Key : Any]'"

Browse Popular Code Answers by Language