We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8410a9 commit 888e3dbCopy full SHA for 888e3db
Sources/OpenSwiftUICore/Layout/Dynamic/DynamicViewListItem.swift
@@ -0,0 +1,33 @@
1
+//
2
+// DynamicViewListItem.swift
3
+// OpenSwiftUICore
4
5
+// Audited for 6.5.4
6
+// Status: Complete
7
+
8
+import OpenAttributeGraphShims
9
10
+struct DynamicViewListItem: DynamicContainerItem {
11
+ var id: ViewList.ID
12
+ var elements: ViewList.Elements
13
+ var traits: ViewTraitCollection
14
+ var list: Attribute<any ViewList>?
15
16
+ var count: Int {
17
+ elements.count
18
+ }
19
20
+ var needsTransitions: Bool {
21
+ traits.optionalTransition() != nil
22
23
24
+ var zIndex: Double {
25
+ traits.zIndex
26
27
28
+ func matchesIdentity(of other: DynamicViewListItem) -> Bool {
29
+ list == other.list && id == other.id
30
31
32
+ var viewID: _ViewList_ID? { id }
33
+}
0 commit comments