...
-PatternView(design: $pattern)
+PatternView(design: $design)
.frame(width: 32.0).border(.black)
.onTapGesture {
shouldShowPatternPicker = !shouldShowPatternPicker;
.popover(isPresented: $shouldShowPatternPicker) {
PatternPicker(selectedDesign: $design)
}
- .onChange(of: pattern) { _ in
+ .onChange(of: design) { _ in
shouldShowPatternPicker = false;
}
```