From 630c5f614eda4bea93ce953d0a4f2dc5d2146a74 Mon Sep 17 00:00:00 2001 From: Szymon Lorenz Date: Mon, 2 Oct 2023 18:43:17 +1000 Subject: [PATCH] window gorup --- Package.swift | 4 ++-- Sources/TokamakSDL2/Scenes/WindowGroup.swift | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 Sources/TokamakSDL2/Scenes/WindowGroup.swift diff --git a/Package.swift b/Package.swift index b5d877b4..114f21cd 100644 --- a/Package.swift +++ b/Package.swift @@ -137,9 +137,9 @@ let package = Package( package: "OpenCombine" ), .product( - name: "SDL", + name: "SDL", package: "SwiftSDL2" - ) + ), ] ), .executableTarget( diff --git a/Sources/TokamakSDL2/Scenes/WindowGroup.swift b/Sources/TokamakSDL2/Scenes/WindowGroup.swift new file mode 100644 index 00000000..466986dd --- /dev/null +++ b/Sources/TokamakSDL2/Scenes/WindowGroup.swift @@ -0,0 +1,7 @@ +import TokamakCore + +extension WindowGroup: SceneDeferredToRenderer { + public var deferredBody: AnyView { + AnyView(content) + } +}