skip to Main Content

Xcode – Swift if statement in modifier

So I have an basic Taskview: TabView { NavigationView { TasksView() } .tabItem { Image(systemName: "bookmark") Text("Tasks") } NavigationView { ShopView() } .tabItem { Image(systemName: "cart.fill") Text("Shop") } } .environment(.colorScheme, isDarkMode ? .dark : .light) And now I want to…

VIEW QUESTION
Back To Top
Search