Skip to content
0:00 / 0:00

#chatgpt#swiftui#ios

Can ChatGPT write better SwiftUI code than you?

Paul Hudson

122K subscribers • 15 videos on Hallway

YouTube
  • Recommended by 2 people: 2 in engineering communities.
  • Presented by Paul Hudson, creator of Hacking with Swift
  • May be out of date. The tools, versions or practices it shows have likely moved on.
  • An opinion. It argues one side of a question engineers disagree on.

Intermediate. Assumes working knowledge.

48K views3 years ago2 recommendations

AI and machine learningMobile developmentSwiftiOS and SwiftUITransformers and LLMs

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.

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

u/allyearswiftin r/swift • Recommends

On “Frustrated with the 100 days of Swift course”

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.