In my ParentView I have a NavigationLink that goes to a ChildView like so:
HStack {
NavigationLink(destination: AddMemberView(newMemberFirst: $NMFirst, newMemberLast: $NMLast, newMemberAge: $NMAge), label: {}).navigationBarHidden(true)
Text("\(NMFirst) \(NMLast)")
Image(systemName: "person.crop.circle.fill.badge.plus")
.renderingMode(.original)
.foregroundColor(Color(.systemBlue))
.font(.system(size: 30))
}
My goal here is that once the $newMemberFirst TextField in the ChildView,AddMemberView() has a value in it, the Image person.crop.circle.fill.badge.plus will disappear in the ParentView. Thanks!