Swift Frontend RAM usage

I am new to Swift and have been playing around in Xcode and following tutorials but I have noticed that even when following these tutorials the 'swift-frontend' process is taking in excess of 50GB of memory once hitting 80GB.

I have a Mackbook Pro with 16GB or RAM but cant figure out what is wrong. I did read about memory leaks but wouldn't thing it was an issue as I have learning by copying code from a tutorial.

I'm very unsure though as to what is happening and how to fix it and am hoping I could get some help here.

Same issue here! It is something related to previews on the canvas. If I keep the preview turned off, it doesn't happen, which means I have to build out to an attached iPhone to see any changes. Really hope this gets fixed soon

https://developer.apple.com/forums/thread/691415 The same issue is registered. It seems that it has not been resolved yet. :(

Swift Frontend RAM usage
 
 
Q