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.
- StColorResourceiOS 17.0+A color resource.
- StImageResourceiOS 17.0+An image resource.
Xcode Library Extensions 2
Types for vending custom items into the Xcode library through a content provider.
- PrLibraryContentProvideriOS 14.0+A source of Xcode library and code completion content.
- StLibraryItemiOS 14.0+A single item to add to the Xcode library.
Previews 5
Machinery for registering and configuring previews of your views in Xcode.
- PrPreviewRegistryiOS 17.0+A protocol that the system uses to locate previews at runtime.
- StPreviewArgumentsiOS 26.0+A structure that supplies the arguments used to configure a registered preview.
- StPreviewCameraA camera that defines a viewpoint in a preview.
- EnPreviewLayoutiOS 13.0+A size constraint for a preview.
- StPreviewUnavailableiOS 17.0+An error that the system throws when a preview is unavailable at runtime.
Structures 6
- StLibraryContentBuilderiOS 14.0+A function builder for generating arrays of library items without
- StPreviewiOS 17.0+A base type that preview macros use to create previews.
- StPreviewBodyBuilderiOS 18.0+Builder for preview body content within a `#Preview` macro.
- StPreviewCameraBuilderA builder type that composes a collection of cameras for previewing a
- StPreviewMacroBodyBuilderiOS 17.0+Builder for preview body content within a `#Preview` macro.
- StPreviewTraitiOS 17.0+Customizations that you can apply to a preview.