Paul Hudson compares ChatGPT-generated SwiftUI code with a hand-coded implementation of Apple's Clock icon to evaluate AI coding capabilities.
In this video I'll show how we can use ChatGPT to generate SwiftUI code that recreates Apple's Clock icon on the Home Screen. I'll then walk you through building the same thing ourselves, so you can see how the two solutions compare.
Introduction
Using ChatGPT to write SwiftUI code
Asking ChatGPT to fix its errors
Trying what ChatGPT built
Building the project ourselves
Adding details to the clock hands
Adding a second hand
Constantly sweeping hands
Drawing an inner ring
Adding hour numbers
Bugs and performance
Final scores
Tips for using ChatGPT safely
How programmers can use ChatGPT effectively
Is ChatGPT 4 better?
Why it's here
2 people recommend this
What people say. Recommended as a helpful and entertaining look at why ChatGPT struggles with writing high-quality SwiftUI code.
d
u/djryanashin r/swift • Recommends
On “Alarm Clock App tutorial?”
There’s an excellent tutorial by Paul Hudson I watched a few days ago. It’s more like a tutorial/“why Chat GPT isn’t great at writing code for you” but you’ll get a lot out of it.
link to this video
Do either of them understand the language and the frameworks and how things fit together? I know Paul does, and he keeps up with developments, but all an AI can give you is the most likely words as evidenced by whatever it has scraped. Incidentally, Paul did a hilarious video on the quality of ChatGPT coding.