From 23e47cd8c0e84d68b8d53724b66a0274a6b9cb71 Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Wed, 16 Apr 2025 23:33:04 +0200 Subject: Don't use binding for PatternView --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 900c4b2..b54144a 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ top left to bottom right) The `PatternView` view will tile the selected design in its frame. It has the following properties: -* `design: Binding`: **required**, which design to use to tile the +* `design: TileDesign`: **required**, which design to use to tile the frame. * `pixelSize: CGFloat`: **defaults to 2.0**, the size of a pixel in the tile. * `foregroundColor: Color`: **defaults to `Color.black`**, the foreground color. @@ -72,7 +72,7 @@ same effect as `Pattern` mentioned above ... -PatternView(design: $design) +PatternView(design: design) .frame(width: 32.0).border(.black) .onTapGesture { shouldShowPatternPicker = !shouldShowPatternPicker; -- cgit