From 90e0d3fe13ee85bc98bafed7f56150f24c305526 Mon Sep 17 00:00:00 2001 From: Nacho Date: Tue, 3 Mar 2020 21:52:48 -0500 Subject: [PATCH] Update README --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3249633..726b493 100644 --- a/README.md +++ b/README.md @@ -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)