@ malc This is absolutely incorrect advice. I recommend you learn the basics before giving advice to others. This example for instance gives you a good overview on "Correct SwiftUI code" as well as proper use of view models.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: