<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Social",
  "identifier" : "/documentation/Social/SLComposeServiceViewController/loadPreviewView()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Social"
    ],
    "preciseIdentifier" : "c:objc(cs)SLComposeServiceViewController(im)loadPreviewView"
  },
  "title" : "loadPreviewView()"
}
-->

# loadPreviewView()

Loads a view that displays a preview of the attachments in the extension context.

```
func loadPreviewView() -> UIView!
```

## Return Value

A view that can appropriately display a preview of the attachments in the context, or `nil` if a preview is unnecessary for the context.

## Discussion

A preview view appears next to the text editing area in a compose view. A subclass can override this method to provide a custom preview view.

---

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)