---
title: LibraryItem
framework: developertoolssupport
role: symbol
role_heading: Structure
path: developertoolssupport/libraryitem
---

# LibraryItem

A single item to add to the Xcode library.

## Declaration

```swift
struct LibraryItem
```

## Overview

Overview Declare a library item to describe an entry in the Xcode library. Xcode discovers and validates library items that you place in the context of a LibraryContentProvider instance. At a minimum, you provide an expression that Xcode uses when the user chooses the library item. You can provide any expression that compiles in the context of the library item instantiation. However, Xcode only honors items that adhere to certain restrictions, as described in views and modifiers(base:). You can also provide additional characteristics, like a title and a category, to help you find the item when searching the library.

## Topics

### Creating a Library Item

- [init(_:visible:title:category:matchingSignature:)](developertoolssupport/libraryitem/init(_:visible:title:category:matchingsignature:).md)
- [LibraryItem.Category](developertoolssupport/libraryitem/category.md)

## See Also

### Library customization

- [LibraryContentProvider](developertoolssupport/librarycontentprovider.md)
