What is the right way to cast Dictionary in Swift 3 to a CFDictionary? Is it legal to write like this?
var dictionary:Dictionary<NSString, Int> = [:]
and then
dictionary as CFDictionary
What is the right way to cast Dictionary in Swift 3 to a CFDictionary? Is it legal to write like this?
var dictionary:Dictionary<NSString, Int> = [:]
and then
dictionary as CFDictionary
Copyright © 2021 Jogjafile Inc.
Yes you can do that. your solution will work and you can also do it like this.
You can refer further from here