SHORT QUESTIONS

Where we should use @StateObject @ObservedObjec in SwiftUI?

@StateObject -> Use this on creation/init() in parent view @ObservedObject -> Use this for subViews() in parent view

J
Joynal Abedin
4

@StateObject -> Use this on creation/init() in parent view

@ObservedObject -> Use this for subViews() in parent view

J

Written by Joynal Abedin

Passionate about technology, code, and sharing knowledge.

0 Comments

Leave a Comment