Structure
DataAsset
A container for a collection of data that represent multiple ways to describe a single asset.
struct DataAsset
Discussion
Assets can be media files, source code files, or files for download. A DataAsset instance represents one bundle asset, which might be represented by multiple files. For example, a single image asset might have a light and dark variants, and 1x, 2x, and 3x image sizes.
Each variant of an asset is identified by a DataTraitCollection and represents the best asset file for the given combination of traits, e.g. a 2x scale image when rendered for Dark Mode.
Topics
Asset Traits
Structures
Initializers
Instance Properties
Instance Methods
Enumerations