Lecture 10: Navigation + TextField

The tenth lecture of Stanford’s Spring 2020 course CS193p is an immersive demo that illustrates a myriad of SwiftUI features, including TextFields, Forms, NavigationViews, Lists, sheets, popovers, Alerts, edit mode, and more. In particular, we start by adding a popover with a Form to our EmojiArt document that allows editing the emoji palette. The Grid from Memorize is brought over and revamped using advanced generics functionality to display the emoji in the palette editor. We then cover how to add multiple MVVM ViewModels to a single iOS application and navigate between those Views using NavigationViews and NavigationLinks. This allows the addition of an EmojiArtDocument store that allows users to keep track of multiple EmojiArtDocuments. We conclude by fixing some bugs and adding edit and delete functionality to the EmojiArtDocument store.


Leave a Comment

We don't require your email address, or your name, for anyone to leave a comment. If you do add an email address, you may be notified if there are replies to your comment - we won't use it for any other purpose. Please make respectful comments, which add value, and avoid personal attacks on others. Links are not allowed in comments - 99% of spam comments, attempt to post links. Please describe where people may find additional information - for example "visit the UN website" or "search Google for..." rather than posting a link. Comments failing to adhere to these guidelines will not be published.