Mercurial > public > lazybear
diff LazyBear/ContentView.swift @ 321:8f8d5ad3dfa0
Preparing backend requests
author | Dennis Concepción Martín <66180929+denniscm190@users.noreply.github.com> |
---|---|
date | Sun, 28 Mar 2021 20:54:58 +0200 |
parents | 8a43331473e1 |
children | 71a9c0e61783 |
line wrap: on
line diff
--- a/LazyBear/ContentView.swift Sat Mar 27 20:32:45 2021 +0100 +++ b/LazyBear/ContentView.swift Sun Mar 28 20:54:58 2021 +0200 @@ -8,6 +8,8 @@ import SwiftUI struct ContentView: View { + @State private var showWelcome = false + var body: some View { TabView { HomeView() @@ -26,7 +28,20 @@ Text("Third") } } +// .onAppear { isAppAlreadyLaunchedOnce() } + .sheet(isPresented: $showWelcome) { + + } } + +// private func isAppAlreadyLaunchedOnce() { +// let defaults = UserDefaults.standard +// +// if let isAppAlreadyLaunchedOnce = defaults.string(forKey: "IsAppAlreadyLaunchedOnce") { +// print("App already launched : \(isAppAlreadyLaunchedOnce)") +// self.showWelcome = true +// } +// } } struct ContentView_Previews: PreviewProvider {