Viewmodel means, are you asking me to create an instance of the child and then use it and I can't directly access the child? is that what you meant? eg: @stateObject var ViewModel = Add_new_presets (), and then accessing the instance?, is this what you're stating or is there any other way?
Sorry, but there is a need and I intentionally separated it as child
and parent so I can explain what I needed (to access data in the child
from parent) :)
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: