In Swift1.2, values ββin the dictionary return the LazyForwardCollection> type, for which the .array property returns Array.
In Swift2, dictionary values ββreturn LazyMapCollection <[Key: Value], Value> and the .array property is abandoned because we can build an Array with an array (dict.values).
In this case you can use these lines
** let array = Array (arrayLiteral: myVariable! .keys)
var selectedUser = [indexPath.row] **
sohail059
source share