Skip to content

Commit

Permalink
Updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
tevelee committed Aug 14, 2024
1 parent 0f3e7f2 commit e19b92c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -125,7 +125,7 @@ HFlow(distributeItemsEvenly: true) {
Distribute and justify for visually pleasing UI.

```swift
HFlow(justification: .stretchItems, distributeItemsEvenly: true) {
HFlow(justification: .stretchItems, distributeItemsEvenly: true) {
ForEach(colors, id: \.description) { color in
RoundedRectangle(cornerRadius: 10)
.fill(color.gradient)
Expand Down

0 comments on commit e19b92c

Please sign in to comment.