Wwdc 2020 watch11/19/2023 ![]() The data model I'm going to use is pretty simple, just an ID, a name, a star rating and a heroImage for the gallery. I fancy myself something of a sandwich connoisseur, and I thought it would be fun to put together a gallery view for Jacob's app to showcase photos of especially memorable lunches. If you caught the "Introduction to SwiftUI" talk, you'll know that my friend Jacob has been hard at work on an app for making sandwiches. But first, in order to talk about Stacks, I need to talk about sandwiches. I'll begin with Stacks, which are the simplest layout primitives in SwiftUI. And finally, Curt will do a deep dive into Outlines and Forms and show some techniques for the progressive display of user interface controls. ![]() ![]() Then I'll look at a new feature of the existing Lists type that allows for the presentation of hierarchical data. I'll start with a review of the most basic types, horizontal and vertical Stacks, and introduce a new pair of types for creating grid layouts that grow lazily. In this talk, I'm going to cover some new additions to SwiftUI's family of layout primitives. Generally, when a simple type doesn't do everything you need it to do, the path forward involves combining it with another simple type that has complementary behavior. SwiftUI's layout primitives were designed with composition in mind. When developing your own apps, I encourage you to think in similar terms. Simple Stacks and Grids work together using hierarchy, alignment and spacing to organize a lot of information, and the result is both beautiful and usable. The new Notification Center in macOS was implemented with SwiftUI, and it serves as a great example of this compositional process at work. These primitives can be used on their own to address basic layout needs, or they can be combined together to build out complex views with custom behavior. SwiftUI has a variety of built-in layout primitives for arranging collections of views in horizontal and vertical sequences. And later in this talk, I'll be joined by my colleague Curt. Hello and welcome to "Stacks, Grids and Outlines in SwiftUI." I'm Cody, an engineer working on SwiftUI. Have a question? Ask with tag wwdc20-10031.If you're brand-new to coding with SwiftUI, we also suggest watching 2019's “SwiftUI Essentials” talk. To get the most out of this video, we recommend first checking out “SwiftUI App Essentials,” which provides an overview of everything new in SwiftUI for 2020. Take your layout options even further with the new grid view, as well as disclosure groups. Learn how to use new and improved tools in SwiftUI to display more content on screen when using table views, create smooth-scrolling and responsive stacks, and build out list views for content that needs more than a vStack can provide. Now available on iOS and iPadOS for the first time, outlines are a new multi-platform tool for expressing hierarchical data that work alongside stacks and lists. Display detailed data in your SwiftUI apps more quickly and efficiently with improved stacks and new list and outline views.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |