Cannot assign to 'X' in 'Y' in Swift

后端 未结 3 657
-上瘾入骨i
-上瘾入骨i 2021-02-05 07:04

I have a dictionary with Structs in it. I am trying to assign the values of the struct when I loop through the dictionary. Swift is tellin

3条回答
  •  伪装坚强ぢ
    2021-02-05 08:01

    You could loop through the array with an index

    for index in 0..

    that should work without getting "cannot assign"

提交回复
热议问题