<!--
{
  "availability" : [
    "iOS: 13.0.0 - 27.0.0",
    "iPadOS: 13.0.0 - 27.0.0",
    "macCatalyst: 13.0.0 - 27.0.0",
    "macOS: 10.15.0 - 27.0.0",
    "tvOS: 13.0.0 - 27.0.0",
    "visionOS: 1.0.0 - 27.0.0",
    "watchOS: 6.0.0 - 27.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/PreviewProvider/previews-swift.type.property",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI15PreviewProviderP8previews8PreviewsQzvpZ"
  },
  "title" : "previews"
}
-->

# previews

A collection of views to preview.

```
@ContentBuilder @MainActor @preconcurrency static var previews: Self.Previews { get }
```

## Discussion

Implement a computed `previews` property to indicate the content to
preview. Xcode generates a preview for each view that you list. You
can apply [`View`](/documentation/SwiftUI/View) modifiers to the views, like you do
when creating a custom view. For a preview, you can also use
various preview-specific modifiers that customize the preview.
For example, you can choose a specific device for the preview
by adding the [`previewDevice(_:)`](/documentation/SwiftUI/View/previewDevice(_:)) modifier:

```
struct CircleImage_Previews: PreviewProvider {
    static var previews: some View {
        CircleImage()
            .previewDevice(PreviewDevice(rawValue: "iPad Pro (11-inch)"))
    }
}
```

For the full list of preview-specific modifiers,
see [Previews in Xcode](/documentation/SwiftUI/Previews-in-Xcode).

---

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)