I solved it by going to my project's Identifiers in Certificates, Identifiers & Profiles and configured iCloud there. Then in Xcode hit try again and it should do the trick 👌
Post
Replies
Boosts
Views
Activity
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()
}
}
}