<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/AccessibilityChildBehavior/ignore",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI26AccessibilityChildBehaviorV6ignoreACvpZ"
  },
  "title" : "ignore"
}
-->

# ignore

Any child accessibility elements become hidden.

```
static let ignore: AccessibilityChildBehavior
```

## Discussion

Use this behavior when you want a view represented by
a single accessibility element. The new accessibility element
has no initial properties. So you will need to use other
accessibility modifiers, such as [`accessibilityLabel(_:)`](/documentation/SwiftUI/View/accessibilityLabel(_:)),
to begin making it accessible.

```
var body: some View {
    VStack {
        Button("Previous Page", action: goBack)
        Text("\(pageNumber)")
        Button("Next Page", action: goForward)
    }
    .accessibilityElement(children: .ignore)
    .accessibilityValue("Page \(pageNumber) of \(pages.count)")
    .accessibilityAdjustableAction { action in
        if action == .increment {
            goForward()
        } else {
            goBack()
        }
    }
}
```

Before using the  [`ignore`](/documentation/SwiftUI/AccessibilityChildBehavior/ignore)behavior, consider
using the [`combine`](/documentation/SwiftUI/AccessibilityChildBehavior/combine) behavior.

> Note: A new accessibility element is always created.

---

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)