Using ForEach always crashes a Playground on MacOS:
swift
import PlaygroundSupport
import SwiftUI
struct ContentView: View {
var body: some View {
ForEach(["Any", "Data"], id: \.hashValue) { str in
Text(str)
}
}
}
PlaygroundPage.current.setLiveView(ContentView())
error: Execution was interrupted, reason: signal SIGABRT.
6
0
2.4k