Let's take a look now at the collection view. This is something you see everywhere. Native Photos app App Store different media apps, you name it. A Collection Manager is an ordered set of content, such as a set of photos, and presents it in a customizable and highly visual layout. Because the collection view doesn't enforce a strictly linear format, it's particularly well suited for displaying items that vary in size. Generally speaking, collections are ideal for showing off image based content.
Backgrounds and other declarative views can optionally be implemented to visually distinguish subsets of items. So a collection manages an ordered collection of items and presents them in a customizable layout. collection layouts may look like these are combinations of them. A lot of facilities have custom Griese with the collection view. The collection can contain use that to visually distinguish subsets of items or provide the quality of items, such as custom backgrounds. So you can have custom background in different parts of your collection view.
Here for example, we see the views that separate items by day. Collections also support interactivity. By default, a collection Do you recognize this tap to select an item, touch and hold, which you could use for rearranging items for example, and swipe to scroll horizontally. If your app requires it, more gestures can be added for performing custom actions. Collections also support animations collection has the built in animations that you can utilize. That is for inserting, for reordering and for deleting items.
You can add custom animations as well. Also, you can add transition animations between layouts. Generally, use a collection to display some media with image thumbnails, photos, videos, games, text snippets, and combinations of these. A collection doesn't enforce a strictly linear layout as we mentioned, so it's particularly well suited display items that differ in size. Avoid creating radical new designs when a standard throw or grid layout is sufficient. A collection supports extensive customization.
So it's essential to avoid becoming distracted by your ability to create radical new designs. You want the collection to enhance the users task. You don't want the collection to become the focus of the user experience. In simpler words, don't overdo it. interfaces just a helper now the focus of attention as you know And here's some guidelines to make sure you don't overdo it. The first one is, don't use a collection when a table view is a better choice.
And the table view is simply at least sexually. Sometimes it's easier for people to view understand and work with information when it's presented in the least. For example, this kind of straightforward list of contacts is easier to work with, than if it was a collection of titles. This particularly applies to a text based information. Here's a table instead of collection for text is generally simpler and more efficient to view and they just extra information when it's displayed in a scrollable list. Make it easy for people to select an item.
If it's hard for users to tap an item in your collection view, they're less likely to enjoy using your app. As with all UI objects that users might want to tap ensure that the minimum target area for item in the collection view is 44 by 44 points. Also, use adequate padding around content to keep the layout clean and prevent overlapping of content. Lastly, use caution when making dynamic layout changes. Make sure your layout changes make sense. It should change accordingly with context and users actions.
Again, Photos app is a good example of the transitions make sense and the art initiated by user. If you need to change the layout dynamically, meaning not necessarily initiated by user action, then you need to be very careful. Be sure that the change makes sense and is easy for users to track. Changing a collection views layout without an obvious motivation can give people the impression that your app is unpredictable and hard to use. And if the users Current focus or context is lost during a dynamic layout change. Users are likely to feel that they're no longer in control of your app and they wouldn't like you for that.