Post

Replies

Boosts

Views

Activity

Reply to How to transition from a SwiftUI Page to a SpriteKit Scene?
I think it'll be better if you use UIViewRepresentable and a .fullScreenCover like so: Swift struct Test: UIViewRepresentable {     func makeUIView(context: Context) - SKView {         let sceneView = SKView(frame: CGRect(x:0 , y:0, width: 800, height: 750))      your code         return sceneView     }     func updateUIView(_ uiView: SKView, context: Context) {     } } struct SwiftUIView: View {     @State var show = false     var body: some View {         Button(action: {             show.toggle()         }) {             Text("Go to Game Scene")         }.fullScreenCover(isPresented: $show) {             Test()         }     } }
Apr ’21