Combining our views
We have created CarDetailView
, FormView
, and CompleteOrderView
, and we need to combine them all together. Open ContentView
and replace Text("Content view")
with the following code:
ZStack { NavigationView { ScrollView(.vertical) { VStack(spacing: 0) { CarDetailView() .frame(height: 600) FormView() .environmentObject(order) &...