TechnologiesDeveloper Tools & Diagnostics

DeveloperToolsSupport

iOSmacOStvOSwatchOSvisionOS

DeveloperToolsSupport supplies the resource types and previews support that back Xcode developer tooling and generated asset symbols across iOS, macOS, tvOS, watchOS, and visionOS. You reference assets through generated symbols typed as ColorResource and ImageResource, and you extend the Xcode library by conforming to LibraryContentProvider to vend LibraryItem values. The framework also defines the previews machinery, including PreviewRegistry, PreviewArguments, PreviewCamera, PreviewLayout, and PreviewUnavailable, used to register and configure previews of your views.

Asset Resources 2

Strongly typed resource values that generated asset symbols use to reference colors and images.

  • St
    ColorResourceiOS 17.0+
    A color resource.
  • St
    ImageResourceiOS 17.0+
    An image resource.

Xcode Library Extensions 2

Types for vending custom items into the Xcode library through a content provider.

  • Pr
    LibraryContentProvideriOS 14.0+
    A source of Xcode library and code completion content.
  • St
    LibraryItemiOS 14.0+
    A single item to add to the Xcode library.

Previews 5

Machinery for registering and configuring previews of your views in Xcode.

  • Pr
    PreviewRegistryiOS 17.0+
    A protocol that the system uses to locate previews at runtime.
  • St
    PreviewArgumentsiOS 26.0+
    A structure that supplies the arguments used to configure a registered preview.
  • St
    PreviewCamera
    A camera that defines a viewpoint in a preview.
  • En
    PreviewLayoutiOS 13.0+
    A size constraint for a preview.
  • St
    PreviewUnavailableiOS 17.0+
    An error that the system throws when a preview is unavailable at runtime.

Structures 6

  • St
    LibraryContentBuilderiOS 14.0+
    A function builder for generating arrays of library items without
  • St
    PreviewiOS 17.0+
    A base type that preview macros use to create previews.
  • St
    PreviewBodyBuilderiOS 18.0+
    Builder for preview body content within a `#Preview` macro.
  • St
    PreviewCameraBuilder
    A builder type that composes a collection of cameras for previewing a
  • St
    PreviewMacroBodyBuilderiOS 17.0+
    Builder for preview body content within a `#Preview` macro.
  • St
    PreviewTraitiOS 17.0+
    Customizations that you can apply to a preview.
← Developer Tools & Diagnostics