diff --git a/README.md b/README.md index c9a90926..853837de 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ struct Colors: View { var body: some View { HFlow { - ForEach(colors + colors, id: \.description) { color in + ForEach(colors, id: \.description) { color in RoundedRectangle(cornerRadius: 10) .fill(color.gradient) .frame(width: Double.random(in: 40...60), height: 50) @@ -90,7 +90,7 @@ Justify by stretching items, the spaces between them, or both. ```swift HFlow(justification: .stretchItems) { - ForEach(colors + colors, id: \.description) { color in + ForEach(colors, id: \.description) { color in RoundedRectangle(cornerRadius: 10) .fill(color.gradient) .frame(height: 50)