title: Hiding view not working - swift
body: <p>Attached the Subviews hierarchy, I just want to hide one and show other after signin. I cannot use navigation controller as I need the swipe to be working inside webview.</p>
  
  <p>So I tried simply toggling view but it is not consistent.</p>
  
  <p>Any help is appreciated.</p>
  
  <p>Here is what I am trying.</p>
  
  <pre><code>func openBrowserView() {
      loader.startAnimating()
      self.viewLoginForm.hidden = true
      self.viewDashboard.hidden = false
      print (" views hid")
  
      let requestURL = NSURL(string:browserURL)            
      let request = NSMutableURLRequest(URL: requestURL!)            
      request.HTTPMethod = httpMethod            
      webView.delegate = self;        
      webView.loadRequest(request)
  }
  </code></pre>