title: Boolean with swift
body: <p>This is really confusing. Does anyone have any ideas?</p>
  
  <pre><code>let viewHasMovedToRight == false //initially I want this to be false
  </code></pre>
  
  <p>then</p>
  
  <pre><code>func moveViewToRight(sender: UIButton!) {
          if viewHasMovedToRight == false {               
              viewHasMovedToRight == true;
  
              UIView.animateWithDuration(
                  0.75,
                  animations: {},
                  completion: { (value: Bool) in
                       println(" moved")                     
                  }
              )
          }                
          else {                
              viewHasMovedToRight == false;             
              UIView.animateWithDuration(
                  0.75,
                  animations:{},
                  completion:{ (value: Bool) in                     
                      println("not moved")                       
                  }
              )
          }
  
         // println("move view")
      }
  </code></pre>
  
  <p>Only the first <code>if</code> is called. 
  I cannot re-assign the value back to true...</p>
  
  <p>Something that was so easy on Obj-C now with swift is so frustrating...</p>