Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
func resetAndChooseView() {
window?.rootViewController = nil
if (AuthRepository.sharedInstance.isLoggedIn()) {
showCameraView()
} else {
showLoginView()
}
}
func resetIfOverInactiveTime() {
if let closedOn = closedOn {
if (NSDate().timeIntervalSince1970 - closedOn > 600) {
self.closedOn = nil
resetAndChooseView()
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.