From 92b2b7845f9caa846ed776400ae3d118a569acbb Mon Sep 17 00:00:00 2001 From: Martin Mlostek Date: Tue, 23 May 2023 22:28:40 +0200 Subject: [PATCH] silenced warning ... ... and fixed the risk of a crash once the `var rows` and `var cols` are really used in a dynamic fashion as the `ForEach` loop would not get updated --- Sources/AudioKitUI/Controls/TapCountingDrumPadGrid.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/AudioKitUI/Controls/TapCountingDrumPadGrid.swift b/Sources/AudioKitUI/Controls/TapCountingDrumPadGrid.swift index 0bf4e9c..497d8b1 100644 --- a/Sources/AudioKitUI/Controls/TapCountingDrumPadGrid.swift +++ b/Sources/AudioKitUI/Controls/TapCountingDrumPadGrid.swift @@ -63,7 +63,7 @@ public struct TapCountingDrumPadGrid: View { let padHeight = gp.size.height / CGFloat(rows) let columns = Array(repeating: GridItem(.fixed(padWidth)), count: cols) LazyVGrid(columns: columns, spacing: 10) { - ForEach(0..