Email or username:

Password:

Forgot your password?
Top-level
Steve Troughton-Smith

Just had my mind blown: So I NSLogged a description of my SceneKit hierarchy for the luls and gave it to ChatGPT and told it to turn it into Swift code. Gibberish, right? Well it had NO PROBLEM figuring out what I meant, and it just did what I wanted 🤯

2 comments
Steve Troughton-Smith

omg ChatGPT can parse Interface Builder XML and output code too? I just dropped my Launch Storyboard into it 😱

Steve Troughton-Smith

So I crafted a storyboard in Interface Builder (pic 1). I then took that XML, pasted it into ChatGPT, and asked it to rewrite it in SwiftUI. It gave me SwiftUI code that, with the tiniest bit of massaging, I could drop into Playgrounds to get the following app (pic 2). It did take some liberties and didn't get it 100% correct, but it's pretty darn close

Go Up