Skip to content

Commit e19b92c

Browse files
committed
Updated README
1 parent 0f3e7f2 commit e19b92c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ struct Colors: View {
2222

2323
var body: some View {
2424
HFlow {
25-
ForEach(colors + colors, id: \.description) { color in
25+
ForEach(colors, id: \.description) { color in
2626
RoundedRectangle(cornerRadius: 10)
2727
.fill(color.gradient)
2828
.frame(width: Double.random(in: 40...60), height: 50)
@@ -90,7 +90,7 @@ Justify by stretching items, the spaces between them, or both.
9090

9191
```swift
9292
HFlow(justification: .stretchItems) {
93-
ForEach(colors + colors, id: \.description) { color in
93+
ForEach(colors, id: \.description) { color in
9494
RoundedRectangle(cornerRadius: 10)
9595
.fill(color.gradient)
9696
.frame(height: 50)
@@ -125,7 +125,7 @@ HFlow(distributeItemsEvenly: true) {
125125
Distribute and justify for visually pleasing UI.
126126

127127
```swift
128-
HFlow(justification: .stretchItems, distributeItemsEvenly: true) {
128+
HFlow(justification: .stretchItems, distributeItemsEvenly: true) {
129129
ForEach(colors, id: \.description) { color in
130130
RoundedRectangle(cornerRadius: 10)
131131
.fill(color.gradient)

0 commit comments

Comments
 (0)