Lecture 12: Bindings Sheet Navigation EditMode
Stanford Stanford
1.9M subscribers
29,195 views
0

 Published On Premiered Jun 15, 2021

Lecture 12 of Stanford’s Spring 2021 course CS193p covers property wrappers in SwiftUI, reviewing wrappers like @ObservedObject and @State and covering new ones like @Binding, @Environment, @EnvironmentObject, and @StateObject. After that, we dive into an immersive demo that illustrates a myriad of SwiftUI features, including TextFields, Forms, NavigationViews, Lists, sheets, popovers, Alerts, EditMode, and more. In particular, we start by adding a context menu that allows us to create new palettes, delete palettes, and switch between palettes. We then add a popover and a Form to our EmojiArt document that allows editing an emoji palette via a @Binding. We’ll further enhance the UI to manage all of our emoji palettes. This UI will use a number of SwiftUI mechanisms including context menus, EditMode, and navigating between Views using NavigationViews and NavigationLinks.

show more

Share/Embed