Переглядів 46,292
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.
00:00 Introduction
03:27 Using ChatGPT to write SwiftUI code
06:40 Asking ChatGPT to fix its errors
09:16 Trying what ChatGPT built
11:38 Building the project ourselves
19:10 Adding details to the clock hands
19:53 Adding a second hand
20:59 Constantly sweeping hands
23:11 Drawing an inner ring
25:45 Adding hour numbers
29:09 Bugs and performance
31:55 Final scores
32:43 Tips for using ChatGPT safely
36:19 How programmers can use ChatGPT effectively
37:30 Is ChatGPT 4 better?