例如代码:
HStack {
Text("Hello")
.accessibilityIdentifier("first_word")
Text(" ")
Text("World!")
.accessibilityIdentifier("second_word")
}
// Place, where I want to put "phrase_identifier",
// but it will override "first_word" and "second_word" identifiers
是否可以创建返回"Hello World!"的"Phrase_IDENTIFIER",同时可以通过"First_Word"="Hello","Second_Word"="World!"获取文本地址?
最新情况: 下面提出了下一个解决方案,但结果是它创建了一组标识符且我无法获得值或用户输入标签或通过"Phrase_IDENTIFIER"