aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorRuben Beltran del Rio <git@r.bdr.sh>2025-04-16 23:33:04 +0200
committerRuben Beltran del Rio <git@r.bdr.sh>2025-04-16 23:33:04 +0200
commit23e47cd8c0e84d68b8d53724b66a0274a6b9cb71 (patch)
treee64732d4e8d4e3b18b68e2b266e0cc4ef29799e1 /README.md
parentba4ee0edf2aba19ad73fa53cb01dd0fb9b527526 (diff)
Don't use binding for PatternView3.0.0
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
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<TileDesign>`: **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;