Skip to content

Commit 812cc7e

Browse files
authored
Fix ViewGraph.instantiateOutputs issue (#432)
* Fix ViewGraph.instantiateOutputs issue * Update OG dependency to fix release issue
1 parent d3ba96f commit 812cc7e

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed

Package.resolved

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -432,13 +432,13 @@ if renderGTKCondition {
432432
}
433433

434434
if !compatibilityTestCondition {
435-
package.targets.append(contentsOf: [
435+
package.targets += [
436436
coreGraphicsShimsTestTarget,
437437
openSwiftUISPITestTarget,
438438
openSwiftUICoreTestTarget,
439439
openSwiftUITestTarget,
440440
openSwiftUIBridgeTestTarget,
441-
])
441+
]
442442
}
443443

444444
if buildForDarwinPlatform {
@@ -451,11 +451,12 @@ if symbolLocatorCondition {
451451
package.dependencies.append(
452452
.package(url: "https://github.com/OpenSwiftUIProject/SymbolLocator.git", from: "0.2.0")
453453
)
454-
455454
package.targets += [
456-
openSwiftUISymbolDualTestsSupportTarget,
457-
openSwiftUISymbolDualTestsTarget,
455+
openSwiftUISymbolDualTestsSupportTarget
458456
]
457+
if !compatibilityTestCondition {
458+
package.targets.append(openSwiftUISymbolDualTestsTarget)
459+
}
459460
}
460461

461462
extension Target {

Sources/OpenSwiftUICore/Data/DynamicProperty/ChangedBodyProperty.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ package func changedBodyProperties<Body>(of type: Body.Type) -> [String] {
1515
var index = 0
1616
repeat {
1717
let options = [
18-
Graph.descriptionFormat.takeUnretainedValue(): "stack/frame",
18+
Graph.descriptionFormat: "stack/frame",
1919
"frame_index": index,
2020
] as NSDictionary
2121
guard let description = Graph.description(nil, options: options),
22-
let dict = description.takeUnretainedValue() as? [String: Any],
22+
let dict = description as? [String: Any],
2323
let nodeID = dict["node-id"] as? UInt32,
2424
let selfType = dict["self-type"] as? BodyAccessorRule.Type,
2525
selfType.container == Body.self

Sources/OpenSwiftUICore/View/Graph/ViewGraph.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ package final class ViewGraph: GraphHost {
210210
}
211211

212212
override package func instantiateOutputs() {
213-
let outputs = globalSubgraph.apply {
213+
let outputs = rootSubgraph.apply {
214214
// Audited for 6.5.4
215215
var inputs = _ViewInputs(
216216
graphInputs,

0 commit comments

Comments
 (0)