Skip to content
Advertisement

Tag: swift3

How can I create Associative array in Swift 3

Hi I am very new to Swift and am trying to use array. I want to create an array in swift3 similar to this PHP array as below: In the array above the country name are dynamic variables. Answer These are called dictionaries in Swift, and you can create one like this: EDIT: Swift is great at inferring the variable

Advertisement