diff options
| author | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-04-16 23:33:04 +0200 |
|---|---|---|
| committer | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-04-16 23:33:04 +0200 |
| commit | 23e47cd8c0e84d68b8d53724b66a0274a6b9cb71 (patch) | |
| tree | e64732d4e8d4e3b18b68e2b266e0cc4ef29799e1 /README.md | |
| parent | ba4ee0edf2aba19ad73fa53cb01dd0fb9b527526 (diff) | |
Don't use binding for PatternView3.0.0
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |