We were encourage by Frameworks Engineer reply and Apple's Official Docs and started to use this approach in our App. But next we detected that App has leaked objects when we do Memory Graph Check in UITests.
Removing of .accessibilityElement(children: .contain)
solves the issue but we still want to use container identifiers in our UITests.
Here is a sample project to illustrated and reproduce the issue: https://github.com/yuri-qualtie/MemoryLeaks. All the details and steps are described in Readme
We need help with fix for .accessibilityElement(children: .contain)
but any workaround is welcomed