Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[![Build Status](https://img.shields.io/travis/rootstrap/ios-base/master.svg)](https://travis-ci.org/rootstrap/ios-base)
[![Code Climate](https://img.shields.io/codeclimate/maintainability/rootstrap/ios-base.svg)](https://codeclimate.com/github/rootstrap/ios-base)
[![License](https://img.shields.io/github/license/rootstrap/ios-base.svg)](https://github.com/rootstrap/ios-base/blob/master/LICENSE.md)

# iOS Base Template
Expand Down
3 changes: 2 additions & 1 deletion ios-base/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
UserDataManager.deleteUser()
SessionManager.deleteSession()
//Clear any local data if needed
//Take user to onboarding if needed
//Take user to onboarding if needed, do NOT redirect the user if is already in the landing
// to avoid losing the current VC stack state.
if window?.rootViewController is HomeViewController {
window?.rootViewController = UIStoryboard(name: "Main", bundle: nil).instantiateInitialViewController()
}
Expand Down