<!--
{
  "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/combine",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI26AccessibilityChildBehaviorV7combineACvpZ"
  },
  "title" : "combine"
}
-->

# combine

Any child accessibility element’s properties are merged
into the new accessibility element.

```
static let combine: AccessibilityChildBehavior
```

## Discussion

Use this behavior when you want a view represented by
a single accessibility element. The new accessibility element
merges properties from all non-hidden children. Some
properties may be transformed or ignored to achieve the
ideal combined result. For example, not all of [`AccessibilityTraits`](/documentation/SwiftUI/AccessibilityTraits)
are merged and a [`default`](/documentation/SwiftUI/AccessibilityActionKind/default) action
may become a named action ([`init(named:)`](/documentation/SwiftUI/AccessibilityActionKind/init(named:))).

```
struct UserCell: View {
    var user: User

    var body: some View {
        VStack {
            Image(user.image)
            Text(user.name)
            Button("Options", action: showOptions)
        }
        .accessibilityElement(children: .combine)
    }
}
```

A new accessibility element is created when:

- The view contains multiple or zero accessibility elements.
- The view wraps a [`UIViewRepresentable`](/documentation/SwiftUI/UIViewRepresentable)/[`NSViewRepresentable`](/documentation/SwiftUI/NSViewRepresentable).

> Note: If an accessibility element is not created, the
> ``doc://com.apple.SwiftUI/documentation/SwiftUI/AccessibilityChildBehavior`` of the existing
> accessibility element is modified.

---

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)