title: How to log out from google account in ios?
body: <p>In my app i have a option to login to the app using google sign in. Login is working fine. Once i click the Logout Button, I am not able to logout from google. When ever I click on login button it's not showing login page as image given below:</p>
  
  <p><a href="https://i.stack.imgur.com/CndlE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CndlE.png" alt="enter image description here"></a></p>
  
  <p>Instead its redirecting to authentication dialog page as image given below:</p>
  
  <p><a href="https://i.stack.imgur.com/m0JL5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/m0JL5.png" alt="enter image description here"></a></p>
  
  <p>Code :</p>
  
  <pre><code>override func viewDidLoad() 
  {
      super.viewDidLoad()
      GIDSignIn.sharedInstance().uiDelegate = self
      let button = GIDSignInButton(frame: CGRectMake(0, 0, 100, 100))
      button.center = view.center
      view.addSubview(button)
   }
  
  @IBAction func signOutButton(sender: AnyObject) {
       GIDSignIn.sharedInstance().signOut()    
  }
  </code></pre>