Lecture 14: Document Architecture
Stanford Stanford
1.9M subscribers
19,594 views
0

 Published On Premiered Jun 21, 2021

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.

show more

Share/Embed