struct ContentView: View {
   @State private var showInfo = false

   var body: some View {
      VStack {
         Button("Show Information") {
            showInfo.toggle()
         }.padding()
         .buttonStyle(.glassProminent)

         HStack {
            if !showInfo {
               Text("Left")
                  .transition(.scale.animation(.default))
            }
            Spacer()
            if showInfo {
               Text("Right")
                  .transition(.scale.animation(.default))
            }
         }.padding()
         Spacer()
      }
   }
}