فهرست منبع

Add debug info

Jonas Björkert 1 سال پیش
والد
کامیت
6819ca467c
1فایلهای تغییر یافته به همراه7 افزوده شده و 0 حذف شده
  1. 7 0
      LoopFollow/Remote/Settings/RemoteSettingsView.swift

+ 7 - 0
LoopFollow/Remote/Settings/RemoteSettingsView.swift

@@ -192,6 +192,13 @@ struct RemoteSettingsView: View {
                         Toggle("Meal with Fat/Protein", isOn: $viewModel.mealWithFatProtein)
                             .toggleStyle(SwitchToggleStyle())
                     }
+
+                    Section(header: Text("Debug / Info")) {
+                        Text("Device Token: \(Storage.shared.deviceToken.value)")
+                        Text("Production Env.: \(Storage.shared.productionEnvironment.value ? "True" : "False")")
+                        Text("Team ID: \(Storage.shared.teamId.value ?? "")")
+                        Text("Bundle ID: \(Storage.shared.bundleId.value)")
+                    }
                 }
             }
             .navigationBarTitle("Remote Settings", displayMode: .inline)