xcassets
xcassets is Apple’s asset catalog system used in Xcode to manage visual resources for iOS, macOS, watchOS, and tvOS applications. An asset catalog is a directory with the .xcassets extension that contains definitions for images, colors, data, and other resources. The assets are described with JSON files (Contents.json) and are compiled by Xcode into a binary asset file (Assets.car) included in the app bundle at build time. This enables platform- and device-specific resource selection at runtime.
The catalog centralizes resources to simplify maintenance and ensure correct variants are used on the target
Contents.json entries define the structure and variants of each asset, including the names, appearances, and scales.
Using xcassets enables predictable resource loading, reduces bundle errors, and simplifies localization and theme adaptation. It