How to pass ObservedObject as parameter in SwiftUI
Issue #685
Since we have custom init in ChildView
to manually set a State
, we need to pass ObservedObject
. In the ParentView, use underscore _
to access property wrapper type.
1 | struct ChildView: View { |