File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Sources/LiveViewNative/Stylesheets Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -8,10 +8,19 @@ import LiveViewNativeCore
8
8
public struct ViewReference : ParseableModifierValue {
9
9
let value : [ String ]
10
10
11
+ @MainActor
11
12
public func resolve< R: RootRegistry > ( on element: ElementNode , in context: LiveContext < R > ) -> some View {
12
13
ForEach ( value, id: \. self) {
13
14
context. buildChildren ( of: element, forTemplate: $0)
14
15
}
16
+ . transformEnvironment ( \. self) { environment in
17
+ if environment. anyLiveContextStorage == nil {
18
+ environment. anyLiveContextStorage = context. storage
19
+ }
20
+ if environment. coordinatorEnvironment == nil {
21
+ environment. coordinatorEnvironment = . init( context. coordinator, document: context. coordinator. document!)
22
+ }
23
+ }
15
24
}
16
25
17
26
public static func parser( in context: ParseableModifierContext ) -> some Parser < Substring . UTF8View , Self > {
You can’t perform that action at this time.
0 commit comments