It works great to pass a Swift String as an NSString .
let string = "some text" let nsString = string as NSString
But when I do
let string = "some text" let nsMutableString = string as NSMutableString
I get an error
'String' does not convert to 'NSMutableString'
How to convert it?
string ios swift nsmutablestring
Suragch
source share