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) :)
Post
Replies
Boosts
Views
Activity
Text(myView.username) does not update itself when typing
Yeah, as I know there is no direct way of using Objective-c in SwiftUI. SwiftUI still has many limitations compared to UIKit and Cocoa etc. But with cocoa and UIKit it's possible.
Is there any reason that you don't want to code in UIKit or Cocoa? The code with UIKit is very easy to write as well. I personally like UIKit and Cocoa than swiftUI.
There are step by step guides in that website as well to get started with UIKit.
Are you talking about the second idea of the answer posted in that site? In that case, if you have any question related to that, you can post a question/reply in that site if you want to.