I've been with this problem for a couple of days and I can't find a solution.
When I build the app, the code runs smoothly and looks just how I'd like it in Preview, but when I run it in the simulator, it only runs part of the code (I know, because when using breakpoints, those parts they don't run, they are skipped as if they don't exist), at first I thought it was Xcode 13.1, but now I'm using beta 13.2 and it happens exactly the same. I have been looking at forums and similar questions, even following the advice posted on them but it is beyond my understanding. The bad thing is that I don't get any error message and I don't find out why that code is skipping, if it's SwiftUI, Xcode or that I'm useless (Most likely).
Thanks for your time.