diff options
| author | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2023-04-28 22:23:36 +0200 |
|---|---|---|
| committer | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2023-04-28 22:23:36 +0200 |
| commit | ba4ee0edf2aba19ad73fa53cb01dd0fb9b527526 (patch) | |
| tree | 111357314127f7e05724b570ed9c6aad6f66e3a2 /README.md | |
| parent | 428153379e8653d38a1e9da441a06f0956492b2b (diff) | |
Use CoreGraphics to draw instead of SwifTUI2.0.0
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -97,12 +97,16 @@ PatternView(design: $design) * watchOS 8+ * catalyst 15+ -## The Tile view +## The TileImage struct If you'd like to do other things with the individual tiles, we also provide the -Tile view, which is just a single tile. +TileImage struct, which generates a CGImage. -The tiles support the same properties as `PatternView` with the exception that -`design` is a `TileDesign` and not a `Binding<TileDesign>` +The tiles support similar properties as `PatternView` with the exception that + +* `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: CGColor`: **defaults to black**, the foreground color. +* `backgroundColor: CGColor`: **defaults to white**, the background color.  |