aboutsummaryrefslogtreecommitdiff
path: root/Sources/Patterns/PatternPicker.swift
diff options
context:
space:
mode:
authorRuben Beltran del Rio <git@r.bdr.sh>2025-04-16 23:33:04 +0200
committerRuben Beltran del Rio <git@r.bdr.sh>2025-04-16 23:33:04 +0200
commit23e47cd8c0e84d68b8d53724b66a0274a6b9cb71 (patch)
treee64732d4e8d4e3b18b68e2b266e0cc4ef29799e1 /Sources/Patterns/PatternPicker.swift
parentba4ee0edf2aba19ad73fa53cb01dd0fb9b527526 (diff)
Don't use binding for PatternView3.0.0
Diffstat (limited to 'Sources/Patterns/PatternPicker.swift')
-rw-r--r--Sources/Patterns/PatternPicker.swift2
1 files changed, 1 insertions, 1 deletions
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: {