Просмотр исходного кода

Reset mistakenly committed changes in HomeRootView

Deniz Cengiz 1 год назад
Родитель
Сommit
a18eb3488e
1 измененных файлов с 18 добавлено и 24 удалено
  1. 18 24
      Trio/Sources/Modules/Home/View/HomeRootView.swift

+ 18 - 24
Trio/Sources/Modules/Home/View/HomeRootView.swift

@@ -1042,7 +1042,7 @@ extension Home {
                     NavigationStack { DataTable.RootView(resolver: resolver) }
                         .tabItem { Label("History", systemImage: historySFSymbol) }.tag(1)
 
-//                    Spacer()
+                    Spacer()
 
                     NavigationStack { Adjustments.RootView(resolver: resolver) }
                         .tabItem {
@@ -1060,29 +1060,23 @@ extension Home {
                 }
                 .tint(Color.tabBar)
 
-//                Button(
-//                    action: {
-//                        state.showModal(for: .treatmentView) },
-//                    label: {
-//                        Image(systemName: "plus.circle.fill")
-//                            .font(.system(size: 40))
-//                            .foregroundStyle(Color.tabBar)
-//                            .padding(.vertical, 2)
-//                            .padding(.horizontal, 24)
-//                    }
-//                )
-//                Image(.trioCircledNoBackground)
-//                    .resizable()
-//                    .scaledToFit()
-//                    .frame(width: 42, height: 42)
-//                    .padding(.vertical, 2)
-//                    .shadow(color: Color.white.opacity(0.1), radius: 5, x: 0, y: 0)
-//            }.ignoresSafeArea(.keyboard, edges: .bottom).blur(radius: state.waitForSuggestion ? 8 : 0)
-//                .onChange(of: selectedTab) {
-//                    if !settingsPath.isEmpty {
-//                        settingsPath = NavigationPath()
-//                    }
-            }
+                Button(
+                    action: {
+                        state.showModal(for: .treatmentView) },
+                    label: {
+                        Image(systemName: "plus.circle.fill")
+                            .font(.system(size: 40))
+                            .foregroundStyle(Color.tabBar)
+                            .padding(.vertical, 2)
+                            .padding(.horizontal, 24)
+                    }
+                )
+            }.ignoresSafeArea(.keyboard, edges: .bottom).blur(radius: state.waitForSuggestion ? 8 : 0)
+                .onChange(of: selectedTab) {
+                    if !settingsPath.isEmpty {
+                        settingsPath = NavigationPath()
+                    }
+                }
         }
 
         var body: some View {