r/iOSProgramming • u/Reiszecke • Oct 03 '21
Discussion PSA for everyone who just now started learning SwiftUI in Xcode 13 - downgrade to 12.
With the release of Xcode 13 I thought it would be a good idea to rewrite some stuff in SwiftUI since it's way easier to put under svn/git than storyboards.
Whilst building and testing was so slow that development was close to impossible, one ViewController with 10 elements was literally impossible to render since RAM usage went up to 20gb and Xcode kept spawning new swiftui-related processes 6-10GB in size.
Similar issues on both intel as well as arm machines.
I found a few related threads on reddit and after downgrading to Xcode 12.x, the seemingly illegal ViewController rendered just like it should without frying my laps.
I still think SwiftUI is way too inefficient to use in a professional manner since it seems to slow down the workflow to like 3x the time it would take in storyboards but at least with 12.x it's somewhat usable again.
So if you have just started with SwiftUI because you need it, skip Xcode 13 until Apple gets their shit together
EDIT: And no it's not about the stupid derived data or "Clean Build Folder", I literally have shell scripts because I do this like 10 times a week
1
Oct 03 '21
[removed] — view removed comment
5
u/Reiszecke Oct 03 '21
Around 2019 I was 2 Xcode versions behind until I actually needed a new feature since I'm so fed up with Xcode releases. I honestly don't understand why Apple puts them out of beta so early when they are clearly unfit.
4
0
u/[deleted] Oct 03 '21
[deleted]