]> git.r.bdr.sh - rbdr/patterns/blobdiff - README.md
Use design instead of pattern
[rbdr/patterns] / README.md
index 512e2a0f75bba62542f87f6a93265b80b3c76471..1a862f6d8d94f8b3ac678e9cb909346658c18f88 100644 (file)
--- 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;
   }
 ```