title: SWIFTUI Binding Not Updating
body: <p>I have a home screen with a “log in” button. Click the button, it will pops up a log in screen. Once it’s logged in, the popover screen will be dismissed. and the home screen will say “logged in!”  I have a <code>@State</code>  boolean var monitoring button click, and another <code>@EnvironmentObject</code>  observing login status. If log in succeeds, <code>isAnon=false</code> . Then the popover window will be dismissed. But it doesn’t work now. when logged in successfully, the popover screen is still on. I’m suspecting the statement <code>Binding&lt;Bool&gt;()</code>  doesn’t update when <code>isAnon=false</code> . is this possible ? where did I miss?  Thanks a lot! Here is the code</p>
  <pre><code>    @EnvironmentObject var session: SessionStore
      @State var isSignInClicked: Bool = false
      
      var body: some View {
          if session.isAnon{// if it is anonymous
              Button(&quot;Please Sign in to view your activities&quot;) {
                  isSignInClicked.toggle()
              }
              .popover(isPresented: Binding&lt;Bool&gt;( get: { session.isAnon &amp;&amp; isSignInClicked},set: {_ in })){
                  LogInView()
              }
          }
          else{// if it's logged in
              Text(&quot;Logged In!&quot;)
          }
      }
  }
  </code></pre>