Contents

CardSnippetFamily

A type that defines the supported rendering environments for card snippets.

Declaration

struct CardSnippetFamily

Overview

Each instance of the CardSnippetFamily type reflects the amount of space available for your custom content, and indicates how the system intends to display that content. When defining a CardSnippet type for one of your entities, you specify which families you support. In the closure you use to create your view, the system provides a CardSnippetContext object with the family it expects you to use to configure your views.

The system defines families broadly so that it can reuse your snippets in multiple places. For example, the standard family supports a view large enough to display on iPad or iPhone. If an entity doesn’t support the requested family, the system presents the entity’s display representation details instead.

Topics

Getting the supported families

See Also

Card snippets