Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
nachonavarro committed Mar 4, 2020
1 parent d0d7bca commit 90e0d3f
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 @@ -63,8 +63,8 @@ struct CarsView: View {
@State var index: Int = 0

var body: some View {
ModelPages(cars) { index, car in
Text("The \(index) car is a \(car.model)")
ModelPages(cars, currentPage: $index) { pageIndex, car in
Text("The \(pageIndex) car is a \(car.model)")
.padding(50)
.foregroundColor(.white)
.background(Color.blue)
Expand Down

0 comments on commit 90e0d3f

Please sign in to comment.