title: Changing a label in prepareforsegue
body: <p>I have a issue with writing the swift code inside of the prepare for segue. I wrote code just to transfer the writing inside of my text box to a label on another view, but this crashed when I went to the other page.</p>
  
  <pre><code>var motionMovement : SecondViewController = segue.destinationViewController as SecondViewController   
  motionMovement.laBel.text = teXt.text
  </code></pre>
  
  <p>Then I added added this to not make it crash</p>
  
  <pre><code>if segue.identifier == "hi"{
          var motionMovement : SecondViewController = segue.destinationViewController as SecondViewController
          motionMovement.laBel.text = teXt.text
      }
  </code></pre>
  
  <p>But now it doesn't change the label.</p>