<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/View/accessibilityShowsLargeContentViewer()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI4ViewPAAE36accessibilityShowsLargeContentViewerQryF"
  },
  "title" : "accessibilityShowsLargeContentViewer()"
}
-->

# accessibilityShowsLargeContentViewer()

Adds a default large content view to be shown by
the large content viewer.

```
nonisolated func accessibilityShowsLargeContentViewer() -> some View
```

## Discussion

Rely on the large content viewer only in situations
where items must remain small due to unavoidable
design constraints. For example, buttons in a tab bar
remain small to leave more room for the main app content.

The following example shows how to add a custom large
content view:

```
var body: some View {
    Button("New Message", action: newMessage)
        .accessibilityShowsLargeContentViewer()
}
```

Don’t use the large content viewer as a replacement for proper
Dynamic Type support. For example, Dynamic Type allows items
in a list to grow or shrink vertically to accommodate the user’s preferred
font size. Rely on the large content viewer only in situations where
items must remain small due to unavoidable design constraints.

For example, views that have their Dynamic Type size constrained
with [`dynamicTypeSize(_:)`](/documentation/SwiftUI/View/dynamicTypeSize(_:)) may require a
large content 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)