I cannot ForEach the value of dictionary which is an Int array. Here is my code:
@State private var notedNumbers: [Int:[Int]] = [:]
ForEach(Array(notedNumbers.keys.enumerated()), id: \.element) { _, key in
let row = key / 9
let col = key % 9
ForEach(notedNumbers[key].indices, id: \.self) { i in
// Cannot ForEach the Int Array here, compiler cannot type check the expression.
}
}