X-Git-Url: https://git.r.bdr.sh/rbdr/patterns/blobdiff_plain/90eb1b2137e0b80dc3af7e544c973971e45eab5a..428153379e8653d38a1e9da441a06f0956492b2b:/README.md diff --git a/README.md b/README.md index 512e2a0..1a862f6 100644 --- a/README.md +++ b/README.md @@ -72,7 +72,7 @@ same effect as `Pattern` mentioned above ... -PatternView(design: $pattern) +PatternView(design: $design) .frame(width: 32.0).border(.black) .onTapGesture { shouldShowPatternPicker = !shouldShowPatternPicker; @@ -80,7 +80,7 @@ PatternView(design: $pattern) .popover(isPresented: $shouldShowPatternPicker) { PatternPicker(selectedDesign: $design) } - .onChange(of: pattern) { _ in + .onChange(of: design) { _ in shouldShowPatternPicker = false; } ```