Skip to content

Commit c7c4c9e

Browse files
committed
WIP
1 parent feb169b commit c7c4c9e

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

Package.resolved

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

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ let package = Package(
1010
.library(name: "TextureSwiftSupport", targets: ["TextureSwiftSupport"]),
1111
],
1212
dependencies: [
13-
.package(url: "https://github.com/FluidGroup/Texture.git", from: "3.0.2"),
13+
.package(url: "https://github.com/FluidGroup/Texture.git", branch: "john/mainActor"),
1414
.package(url: "https://github.com/FluidGroup/Descriptors", from: "0.2.0"),
1515
],
1616
targets: [

Sources/Components/Compositions/AnyDisplayNode.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ open class AnyDisplayNode: SafeAreaDisplayNode {
106106
}
107107

108108
@available(*, unavailable)
109-
open override func onDidLoad(_ body: @escaping ASDisplayNodeDidLoadBlock) {
109+
open override func onDidLoad(_ body: @escaping @MainActor (ASDisplayNode) -> Void) {
110110
super.onDidLoad(body)
111111
}
112112

Sources/Components/Compositions/HighlightCellNode.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ open class HighlightCellNode<D: ASDisplayNode>: NamedDisplayCellNodeBase {
4040
If body uses layer-backing, it can't take a view to animate by UIView based animation.
4141
With wrapping another node, it enables body-node can be animatable.
4242
*/
43-
self.animationTargetNode = AnyWrapperNode { body }
43+
self.animationTargetNode = AnyWrapperNode(content: body)
4444
} else {
4545
self.animationTargetNode = body
4646
}

Sources/Components/Compositions/InteractiveNode.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ open class InteractiveNode<D: ASDisplayNode>: NamedDisplayControlNodeBase {
7272
If body uses layer-backing, it can't take a view to animate by UIView based animation.
7373
With wrapping another node, it enables body-node can be animatable.
7474
*/
75-
animationTargetNode = AnyWrapperNode { body }
75+
animationTargetNode = AnyWrapperNode(content: body)
7676
} else {
7777
animationTargetNode = body
7878
}

0 commit comments

Comments
 (0)