From 23e47cd8c0e84d68b8d53724b66a0274a6b9cb71 Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Wed, 16 Apr 2025 23:33:04 +0200 Subject: Don't use binding for PatternView --- Sources/Patterns/PatternPicker.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Sources/Patterns/PatternPicker.swift') diff --git a/Sources/Patterns/PatternPicker.swift b/Sources/Patterns/PatternPicker.swift index 32c9f39..46b7ef2 100644 --- a/Sources/Patterns/PatternPicker.swift +++ b/Sources/Patterns/PatternPicker.swift @@ -26,7 +26,7 @@ public struct PatternPicker: View { HStack(alignment: .top, spacing: 0) { ForEach(0 ..< 5) { j in if i * 5 + j < patterns.count { - PatternView(design: .constant(patterns[i * 5 + j]), pixelSize: pixelSize, foregroundColor: foregroundColor, backgroundColor: backgroundColor) + PatternView(design: patterns[i * 5 + j], pixelSize: pixelSize, foregroundColor: foregroundColor, backgroundColor: backgroundColor) .frame(width: pixelSize * 16, height: pixelSize * 12) .border(selectedDesign == patterns[i * 5 + j] ? selectedColor : foregroundColor, width: pixelSize / 2.0) .onTapGesture(perform: { -- cgit