One Logo Pool Ball
DeveloperToolsSupport · IOS API REFERENCE

LibraryItem

struct · iOS 14.0+ · SDK 27.1

struct LibraryItem

A single item to add to the Xcode library. 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 ``DeveloperToolsSupport/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 ``DeveloperToolsSupport/LibraryContentProvider/views-25pdm`` and ``DeveloperToolsSupport/LibraryContentProvider/modifiers(base:)-4svii``. You can also provide additional characteristics, like a title and a category, to help you find the item when searching the library.

Members (0)

This type has no directly callable members in this snapshot. See the framework’s skipped declarations for unsupported APIs.

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

LibraryItem.init(_:visible:title:category:matchingSignature:)

callback cannot propagate synchronous failure

All DeveloperToolsSupport types →