The equivalent of using a .semanticGroup accessibilityContainerType in UIKit, would be to use the .accessibilityElement(children: ) modifier with the .contain option in SwiftUI.

Here's a refresher with some use-cases:

https://x.com/dadederk/status/1558790851496742914