KS
в итоге транзишен шедулиться и вызовется только при следующем вращеннии ранлупа. любой ивент разбудивший ранлуп покажет алерт. выход — сделать деселект в дидСелект. глубже копать у меня опыта не хватает)
Size: a a a
KS
DK
KS
__workaround10030904InvokeWithTarget_block_invoke
)) У них там куча хаков и суоркэраунды, ..ука, пронумерованы))KS
Д
RT
RT
Identifiable
используется вот этот экстеншнextension ForEach where ID == Data.Element.ID, Content : View, Data.Element : Identifiable {
/// Creates an instance that uniquely identifies views across updates based
/// on the identity of the underlying data element.
///
/// It's important that the ID of a data element does not change unless the
/// data element is considered to have been replaced with a new data
/// element with a new identity. If the ID of a data element changes, then
/// the content view generated from that data element will lose any current
/// state and animations.
public init(_ data: Data, @ViewBuilder content: @escaping (Data.Element) -> Content)
}
КС
RT
extension Int: Identifiable {
public typealias ID = Int
public var id: Int {
return self
}
}
М
S
AS
KS
AS
RM
KS
AS
AS