Mercurial > public > lazybear
diff LazyBear/ContentView.swift @ 385:7aab87e16661
Delete HelperView
author | Dennis Concepción Martín <66180929+denniscm190@users.noreply.github.com> |
---|---|
date | Sat, 24 Apr 2021 00:41:56 +0200 |
parents | 6802c2393203 |
children | 3599d303d1a0 |
line wrap: on
line diff
--- a/LazyBear/ContentView.swift Sat Apr 24 00:41:41 2021 +0200 +++ b/LazyBear/ContentView.swift Sat Apr 24 00:41:56 2021 +0200 @@ -10,48 +10,36 @@ struct ContentView: View { @State private var showWelcome = false @State var selectedView = 1 - @EnvironmentObject var hudManager: HudManager var body: some View { - ZStack { - TabView(selection: $selectedView) { - HomeView() - .tabItem { - Image(systemName: "house") - Text("Home") - } - .tag(1) // Do not remove tags. It causes an odd behaviour when showView is activated - SearchView() - .tabItem { - Image(systemName: "magnifyingglass") - Text("Search") - } - .tag(2) - ProfileView() - .tabItem { - Image(systemName: "person") - Text("Profile") - } - .tag(3) + TabView(selection: $selectedView) { + HomeView() + .tabItem { + Image(systemName: "house") + Text("Home") + } + .tag(1) // Do not remove tags. It causes an odd behaviour when showView is activated + SearchView() + .tabItem { + Image(systemName: "magnifyingglass") + Text("Search") + } + .tag(2) + ProfileView() + .tabItem { + Image(systemName: "person") + Text("Profile") + } + .tag(3) // Text("The Last Tab") // .tabItem { // Image(systemName: "4.square.fill") // Text("Forth") // } - } - // .onAppear { isAppAlreadyLaunchedOnce() } - .sheet(isPresented: $showWelcome) { - - } + } +// .onAppear { isAppAlreadyLaunchedOnce() } + .sheet(isPresented: $showWelcome) { - Group { - BackgroundShadow() - - HelpSheet() - .offset(y: hudManager.showSearchHelper ? 0 : 700) - .padding(.horizontal) - } - .animation(.easeInOut) } }