title: How to get the rootView inside composable function?
body: <p>In my activity I have a composable function:</p>
  <pre><code>@Composable
  private fun checkResponse() {
      when(val response = viewModel.response) {
          is Success -&gt; //...
          is Failure -&gt; showSnackBar() //Here is the problem.
      }
  }
  </code></pre>
  <p>The <code>showSnackBar()</code> is this:</p>
  <pre><code>private fun showSnackBar(rootView: View) {
      Snackbar.make(rootView, &quot;Error&quot;, Snackbar.LENGTH_LONG).show()
  }
  </code></pre>
  <p>Which takes as an argument the <code>rootView</code>. How to call showSnackBar and pass the correct argument?</p>