I am trying to create AttributedString and add the attributes from
typingAttributes(from textView)
The problem is that
.typingAttributes
return
[String, Any]
and
NSAttributedString(string:.. , attributes:[])
needs
[NSAttributedStringKey: Any]
My code:
NSAttributedString(string: "test123", attributes: self.textView.typingAttributes)
I don't want to create for in cycle to go through all keys and change them to
NSAttributedStringKey