title: How to change the view with TabBar but with a Button (like in Apple Music)
body: <p>Hello StackOverflow Users, I am learning SwiftUI and have now a problem.</p>
  <p>I want to implement the function like in Apple Music, where you can select between &quot;Apple Music&quot; and &quot;Your Library&quot; (Look at the Picture) (It's change the List when you click on &quot;Your Library&quot;/&quot;Deine Mediathek&quot;)</p>
  <p>It's like the TabBar, but I don't know what is called. So maybe someone here can help me…</p>
  <p><em>I am from germany, so sorry for my bad english. Hope someone could understand it. </em>
  <a href="https://i.stack.imgur.com/ot7mt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ot7mt.png" alt="Reference Picture from Apple Music" /></a></p>