<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "DeveloperToolsSupport",
  "identifier" : "/documentation/DeveloperToolsSupport/LibraryContentProvider/views",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "DeveloperToolsSupport"
    ],
    "preciseIdentifier" : "s:21DeveloperToolsSupport22LibraryContentProviderP5viewsSayAA0D4ItemVGvp"
  },
  "title" : "views"
}
-->

# views

The SwiftUI views that you want to add to the Xcode library.

```
@LibraryContentBuilder var views: [LibraryItem] { get }
```

## Discussion

Xcode adds the [`LibraryItem`](/documentation/DeveloperToolsSupport/LibraryItem) instances returned
by your implementation of this property to its Views library. The
following restrictions apply:

- You must instantiate the library items inline.
- If specified, the item’s `title`, `category`, and `matchingSignature`
  must be static strings and not `nil`.
- The item’s `visible` value, if specified, must be a literal Boolean
  value.
- The item’s expression must be an instantiation. That is, it can’t be
  a reference.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)