onevcat / swift-ui-book-issue

76 stars 0 forks source link

ForEach(row, id: \.self) 跑不通 #2

Closed youzi001 closed 5 years ago

youzi001 commented 5 years ago

文中包含ForEach(row, id: .self) 的地方是否应该改为ForEach(row.identified(by: .self))

onevcat commented 5 years ago

新的 beta 里应该已经没有 identified(by:) 了,您用的 Xcode 11 是 beta 几?

youzi001 commented 5 years ago

Version 11.0 beta (11M336w) 抱歉我以为我是最新版的 我这就去更新