I am trying to create a hexagon grid using swiftUI on Xcode. To loop over the creation of the individual hexagons I am using a foreach loop. However I came Across an error when
How do I give this loop an explicit type?
ForEach(-5...5, id: \.self) { (Ynumber) -> _ExplicitType_ in ... return self.hexagon( ... ) }