I have a very simple dictionary:
let dict = ["name": "John", "surname": "Doe"]
But when I try to access to the keys of the dictionary I get this error:
Keys(_variantBuffer: Swift._VariantDictionaryBuffer<Swift.String, Swift.String>.native(Swift._NativeDictionaryBuffer<Swift.String, Swift.String>(_storage:
Here is the complete implementation:
override func viewDidLoad() {
super.viewDidLoad()
let array = [1,2,3,4,6,5]
let dict = ["name": "John", "surname": "Doe"]
print(array)
print(dict.keys)
}
Any of you knows why I'm getting this error? or how can fix this?
I'll really appreciate your help