5 ms·
> SwiftUI Previews is notorious for crashing, timeouts and random errors. Just going to plus one this point in particular. I just started working on an app for
by spike021 5y ago
> SwiftUI Previews is notorious for crashing, timeouts and random errors.
Just going to plus one this point in particular. I just started working on an app for the first time in January, chose SwiftUI, and probably wasted at least a few days' worth of work time dealing with non-problems that become problems only because of using SwiftUI Previews.
Once I disabled Canvas and removed the Preview struct, my dev time got quite a bit more efficient.
- ollysb 5y agoI used SwiftUI for a side project and after 6 months binned the whole thing and switched to flutter. I was finding that a huge portion of my time was spent trying to get the project to compile (it generally just needed many recompiles so presumably there's race conditions in xcode or the compiler) and the previews induced several minutes worth of spinner every time I went near them.
- spike021 5y agoThat's pretty crazy. Fortunately once I stopped relying on Previews things quieted down. I have trouble debugging some runtime issues, but that's my fault for not being very confident with Xcode's debugger and such rather than a compiler or Swift issue.
- cudgy 5y agoWhat’s wrong with nibs or storyboards? Why does it have to be the latest shiny abominable object to emerge from the incubator?