title: To keep the current user logged in using swift and parse
body: <p>I'm trying to keep the current user logged in even if they close the app(no minimize but close) like every other app. Parse documentation suggests using</p>
  
  <pre><code>var currentUser = PFUser.currentUser()
  if currentUser != nil {
    // Do stuff with the user
  } else {
    // Show the signup or login screen
  }
  </code></pre>
  
  <p>But the currentUser is always nil after closing the app. Any help will be appreciated  </p>