Skip to content

Commit

Permalink
Merge pull request #36 from yimajo/patch-2
Browse files Browse the repository at this point in the history
Fix compiler error in List.
  • Loading branch information
Sadmansamee authored Mar 14, 2021
2 parents 8fa2f92 + 471a79d commit 105b0e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@ List {
To create dynamic **List**
``` swift
let names = ["Thanos", "Iron man", "Ant man"]
List(names) { name in
List(names, id: \.self) { name in
Text(name)
}
```
Expand Down Expand Up @@ -987,7 +987,7 @@ Navigate via tap on List Item

``` swift
let names = ["Thanos", "Iron man", "Ant man"]
List(names) { name in
List(names, id: \.self) { name in
NavigationLink(destination: HeroView(name: name)) {
Text(name)
}
Expand Down

0 comments on commit 105b0e0

Please sign in to comment.