Recorded – watch the full episode on YouTube.
What are the biggest shortcomings of SwiftUI currently, in your opinion?
Meng To: To be honest, I'm not the right person to ask this question because I don't have the same amount of experience with SwiftUI as you, for example, but definitely the first thing that comes to mind is the collection view.
What else? The storyboard, obviously. The fact that you can visually change everything in a design tool. In SwiftUI you have to do it in code, which is fine, because at the end of the day, what I noticed when I started with SwiftUI is that in the preview you can drag and drop stuff. You can insert something and then drag it to the preview.
I think that's nice. It's great for beginners, but at the end of the day, I'm like, “well, eventually I don't even use it anymore because the coding part is so good.” So that's how I feel about storyboard as well. At the beginning it's great. It's great for creating quick layouts. And eventually you just end up having so much trouble, or at least you feel like there's a way to do it better or faster, that you feel like, maybe I should just do everything in code. And I think SwiftUI is that answer.
This transcript was recorded as part of Swiftly Speaking. You can watch the full original episode on YouTube, or subscribe to the audio version on Apple Podcasts.
SAVE 50% To celebrate WWDC23, all our books and bundles are half price, so you can take your Swift knowledge further without spending big! Get the Swift Power Pack to build your iOS career faster, get the Swift Platform Pack to builds apps for macOS, watchOS, and beyond, or get the Swift Plus Pack to learn advanced design patterns, testing skills, and more.
Link copied to your pasteboard.