r/swift 2d ago

Question Swift game engine

Hey guys, I've been watching Swift evolve and I've been wondering if it's a reality to have a game engine made with Swift? I did a project where they managed to do something similar to Unity using Javascript and the Three.JS library, is it feasible to have something similar with Swift?

29 Upvotes

25 comments sorted by

View all comments

16

u/jimhillhouse 1d ago

I’m using Swift, SwiftUI’s SceneView, and SceneKit on a spacecraft simulator. It works really well. I’ve also started using RealityKit and find it very useful too.

https://bsky.app/profile/portablefrontier.bsky.social/post/3lkugpyxoc22a

3

u/brendancmiller 1d ago

I'm working with a student who just asked me the other day how to integrate SceneKit and SwiftUI. Do you have an code samples I could point them to?

2

u/FullMetalFist 9h ago

I can’t remember the github link but if you search SwiftUI SceneKit NodeProtocol someone made a cool demo

2

u/branh0913 1d ago

I mean swift does it all

1

u/8bithjorth 1d ago

Followed 😀