modify sensitive words

Signed-off-by: yfwang6 <wangyongfei6@huawei.com>
Change-Id: I2462f6df3e14ed511fe0b4fec9813f0d1b8eb84a
This commit is contained in:
yfwang6
2022-05-13 15:30:36 +08:00
parent 0654935869
commit d775a7ffc1
@@ -22,8 +22,8 @@
The expectation is that TextElement objects are created only once, then put to new order.
For this to work, each time a TextComponent is created it needs to be assigned the same unique key.
This is why anArray is not a simple array of strings. strings are not uniquely identifyable
(in SwiftUI). Therefore, the app needs to provide a unique id for each array item.
This is why anArray is not a simple array of strings. strings are not uniquely identifyable.
Therefore, the app needs to provide a unique id for each array item.
We do so by making each array item an object with a unique id.
this id should be used as the 'key' argument when creating a Text.