In this video we look at how @EnvironmentObject lets us share data across different views in our app, then add a button to let users order some food.
This is a 14-part project that walks you through building a SwiftUI project from scratch. It's designed to work alongside my book SwiftUI by Example, available at https://www.hackingwithswift.com/quick-start/swiftui
This project is aimed at programmers who have some experience with Swift and UIKit already, and want to get up to speed with SwiftUI as quickly as possible.
8 Comments