title: Android Compose setupWithNavController
body: <p>I am looking for a Compose variant of <a href="https://developer.android.com/reference/androidx/navigation/ui/NavigationUI#setupWithNavController(androidx.appcompat.widget.Toolbar,%20androidx.navigation.NavController)" rel="noreferrer">setupWithNavController(Toolbar, NavController)</a> to automatically update the up button in an <code>AppBar</code> whenever the Navigation destination changes.
  So far I haven't found anything useful.</p>
  <p>Is it considered a bad design in Compose? Or is there some simple way how to achieve the same thing that I am not seeing?</p>