![]() ![]() So at that point now you're facing a custom layout. And if you did that, you would think to yourself, "Well, can I really make flow happen here?" And you'd probably discard that right away. Now, if your designer handed you this design today, what would you do? Well, you'd think, "All right, I got to choose how I'm going to design this thing." And there's a lot of options now more than never.Īnd you might settle on CollectionView. And here we see the App Store that we're shipping in iOS 13. You can get it up and running pretty quick.īut what about today's apps? So as devices got more heterogeneous and screen sizes got different, things get mother complex in today's apps. But in summary, a line-based system allows you to lay out on the orthogonal axis, of the layout axis, until you just fill up the amount of space you have available and we drop the next line.Īnd this is really great, it works simple, easy to reason about. Now, we covered this last year in a tour of UI CollectionView. Now, flow layout was really useful for a ton of different designs, especially back in the iOS 6 days where things were maybe a little bit simpler.Īnd it did this because it uses a line-based layout system. And we shipped a concrete layout class with iOS 6 called CollectionView flow layout. So we have to subclass to get use out of it. Now, CollectionView layout is an abstract thing. So it's really two classes acting in concert with each other, where one does a rendering and one is responsible for where things go or the CollectionView layout. What do we do today? How do we define CollectionView layout? Now, when CollectionView was introduced back in iOS 6, it has a really novel concept it had a separate abstraction for defining layout. So first let's talk a bit about the current state of UI. ![]() First we're going to go over the current state-of-the-art - how do we do this today? How do we define CollectionView layout in our applications? Then we're going to go over a brand new approach that we're bringing to all the platforms this year - iOS, tvOS, and the Mac.Īnd then we're going to go on to some hands-on demos so you can see this API in action.Īnd then we'll do a tour of some more advanced features of how you can get the most out of this API.Īll right, we got a ton of content. Now, we're going to break the talk down into four broad segments. So today we're going to talk a little bit about advances in CollectionView layouts. I'm engineer on the UIKit team.Īnd I'm joined today by me colleagues, Troy Stephens from the AppKit team and Dersu Abolfathi from the App Store team.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |