This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# In AppDelegate: | |
# This is to make sure that it only happens on the first launch | |
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { | |
// Override point for customization after application launch. | |
let defaults = UserDefaults.standard | |
let isPreloaded = defaults.bool(forKey: "isPreloaded") | |
if !isPreloaded { |