Lecture 14: Document Architecture

Stanford published this video item, entitled “Lecture 14: Document Architecture” – below is their description.

Lecture 14 of Stanford’s Spring 2021 iteration of its CS193p course begins with an overview of the App and Scene protocols. We then discuss WindowGroup, @SceneStorage and @ScaledMetric in more depth, before moving on to a demo in which we use these these APIs to restructure our EmojiArt application, preserve the state of our app and documents, and scale our emoji sizes appropriately. We also engage in an in-depth discussion on DocumentGroup and ReferenceFileDocuments before using this SwiftUI document architecture to implement a much more concise version of our EmojiArtDocument code. Finally, using UTTypes and Undo, we create a new document type that can be accessed through the native iPhone Files app and can support undo and redo capabilities.

Stanford YouTube Channel

Got a comment? Leave your thoughts in the comments section, below. Please note comments are moderated before publication.


About This Source - Stanford

Stanford University, officially Leland Stanford Junior University, is a private research university in Stanford, California. The campus occupies 8,180 acres, among the largest in the United States, and enrolls over 17,000 students. Stanford is ranked among the best universities in the world.

Recent from Stanford:

The movers and shakers of stanford’s earthquake center 1

The movers and shakers of Stanford’s earthquake center

Sarafan ChEM-H Vlog

Two tricks for healthier eating

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.