Hey! I experienced a similar problem too. The swift-frontend and SourceKitService processes were overloading memory incrementally. I managed to find what caused this error. But I do not understand the true reasons for this problem.
For fun, I tested build with different values.
In my case, the memory overload occurred due to the fact that after Text () there was
.padding (with value) followed by
.foregroundColor (with RGB).
For clarity, I made a screenshot from Xcode:
Take a look. Maybe someone is also getting an error because of this, and you can get through this problem.
Although for me it is a mystery why this is happening.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: