From: Ruben Beltran del Rio Date: Thu, 27 Apr 2023 08:38:23 +0000 (+0200) Subject: Use design instead of pattern X-Git-Tag: 2.0.0~1 X-Git-Url: https://git.r.bdr.sh/rbdr/patterns/commitdiff_plain/428153379e8653d38a1e9da441a06f0956492b2b?ds=inline Use design instead of pattern --- 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; } ```