File tree Expand file tree Collapse file tree 1 file changed +14
-13
lines changed
Sources/OpenSwiftUICore/Data/DynamicProperty Expand file tree Collapse file tree 1 file changed +14
-13
lines changed Original file line number Diff line number Diff line change @@ -64,21 +64,22 @@ public struct _DynamicPropertyBuffer {
6464 guard !taggedFields. isEmpty else {
6565 return
6666 }
67- let box = EnumBox (
68- cases: taggedFields. map { taggedField in
69- (
70- taggedField. tag,
71- _DynamicPropertyBuffer (
72- fields: DynamicPropertyCache . Fields ( layout: . product( taggedField. fields) ) ,
73- container: container,
74- inputs: & inputs,
75- baseOffset: 0
76- )
67+ let cases = taggedFields. map { taggedField in
68+ (
69+ taggedField. tag,
70+ _DynamicPropertyBuffer (
71+ fields: DynamicPropertyCache . Fields ( layout: . product( taggedField. fields) ) ,
72+ container: container,
73+ inputs: & inputs,
74+ baseOffset: 0
7775 )
78- } ,
79- active: nil
80- )
76+ )
77+ }
8178 func project< Enum> ( type _: Enum . Type ) {
79+ let box = EnumBox (
80+ cases: cases,
81+ active: nil
82+ )
8283 let index = contents. append ( box, vtable: EnumVTable< Enum> . self )
8384 contents [ index] . flags. fieldOffset = Int32 ( baseOffset)
8485 }
You can’t perform that action at this time.
0 commit comments