Configurations
Specify the appearance and content of your views and cells using configurations.
Overview
Configurations provide a lightweight way to apply content and styling to views without having to manage the rendering of the appearance yourself.
Using a configuration, you can obtain system default styling for a variety of different view states and customize that styling as needed. Then, you assign that configuration to a view that supports configurations, like UICollectionViewCell, or use it to create a custom content view, like UIListContentView. The configuration updates itself when the view’s configuration state changes, causing the view to reflect the new styling for that state.
There are two types of configurations:
Background configurations, which let you specify the background appearance for a view. For more information, see
UIBackgroundConfiguration.Content configurations, which let you specify content (like image and text) and styling for that content (like tint color and padding). For list-based content, UIListContentConfiguration defines many customization options.