I want to create database when i access the app for the first time.
As you know, Swift has an AppDelegate.swift class with @UIApplicationMain, and it means main() class.
If i want to create database when i first access the app and not the next time i access it, what should i do?
Can i change the AppDelegate.swift? (i don't know it's good way)
Or use flag? (i think whenever i access the app, that flag will initialize... should i save the flag in the local database??? but that time, there will be no database...)
In addition, I'm using Sqlite.swift.
if you need my codes to understand question, comment me!