I am new in swift and I am getting error in xcode 12.3. Before it was working fine
my code is like this
let dictOption = options[0] as! NSMutableDictionary
btn2.setTitle(dictOption.string(forKey: "optionValue"), for: .normal)
but it is showing error
Value of type 'NSMutableDictionary' has no member 'string'
did anyone face the similar issue.
Please help!
Replace
with
Or more
Swifty