---
title: DeveloperToolsSupport
framework: Developer Tools Support
role: collection
role_heading: Framework
platforms: [iOS 14.0+, iPadOS 14.0+, Mac Catalyst 14.0+, macOS 11.0+, tvOS 14.0+, visionOS 1.0+, watchOS 7.0+]
path: developertoolssupport
---

# DeveloperToolsSupport

Expose custom views and modifiers in the Xcode library.

## Overview

Overview Using the DeveloperToolsSupport framework, you tell Xcode about your custom SwiftUI views and view modifiers. After adding your views and modifiers, Xcode makes them available to you when you click the Library button (+) in Xcode’s toolbar. You can select and drag the custom library items into code, just like you would for system-provided items. To add items to the library, create a structure that conforms to the LibraryContentProvider protocol and encapsulate any items you want to add as LibraryItem instances. Implement the views computed property to add library items containing views. Implement the modifiers(base:) method to add items containing view modifiers. Xcode harvests items from all of the library content providers in your project as you work, and makes them available to you in its library.

## Topics

### Library customization

- [LibraryContentProvider](developertoolssupport/librarycontentprovider.md)
- [LibraryItem](developertoolssupport/libraryitem.md)

### Preview definition

- [Preview](developertoolssupport/preview.md)
- [PreviewLayout](developertoolssupport/previewlayout.md)
- [PreviewTrait](developertoolssupport/previewtrait.md)
- [PreviewRegistry](developertoolssupport/previewregistry.md)

### Preview camera management

- [PreviewCamera](developertoolssupport/previewcamera.md)
- [PreviewCameraBuilder](developertoolssupport/previewcamerabuilder.md)

### Resource definition

- [ColorResource](developertoolssupport/colorresource.md)
- [ImageResource](developertoolssupport/imageresource.md)

### Structures

- [PreviewArguments](developertoolssupport/previewarguments.md)
- [PreviewBodyBuilder](developertoolssupport/previewbodybuilder.md)
- [PreviewMacroBodyBuilder](developertoolssupport/previewmacrobodybuilder.md)
