mirror of
https://github.com/openharmony/developtools_ace-ets2bundle.git
synced 2026-07-18 16:04:32 -04:00
modify sensitive words Signed-off-by: yfwang6 <wangyongfei6@huawei.com> Change-Id: I2462f6df3e14ed511fe0b4fec9813f0d1b8eb84a
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user