Once again, the most frustrating and weird error message: "The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions"
So, how exactly does one break this up?
Code Block struct TimePosition: View { var scale: Double var body: some View { GeometryReader { geometry in VStack { ForEach(0..<Int(geometry.size.height)/Int(1/self.scale), id:\.self) { y in Text(String(Double(y)/4.0)).position(x: geometry.size.width/2, y: CGFloat(y)).font(.system(size: 8.0)).foregroundColor(.gray) } } } } }
So, how exactly does one break this up?