5 let pixelSize: CGFloat = 2.0;
9 private var pixels: [Int] {
15 ForEach(0 ..< 8) { i in
17 ForEach(0 ..< 8) { j in
19 .frame(width: pixelSize, height: pixelSize)
20 .foregroundColor(pixels[(i % 8) * 8 + j % 8] == 0
31 struct Tile_Previews: PreviewProvider {
32 static var previews: some View {