https://medium.com/better-programming/how-to-use-firebase-in-swiftuis-new-application-lifecycle-c77a8a306d63