Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

guard home view for non-ente builds

Prateek Sunal4996814c925a
diff --git a/mobile/native/darwin/Apps/ensu/ensu/HomeView.swift b/mobile/native/darwin/Apps/ensu/ensu/HomeView.swift
index 8ac92b704d..5d415fac89 100644
--- a/mobile/native/darwin/Apps/ensu/ensu/HomeView.swift
+++ b/mobile/native/darwin/Apps/ensu/ensu/HomeView.swift
@@ -1,3 +1,4 @@
+#if canImport(EnteCore)
import SwiftUI
struct HomeView: View {
@@ -28,3 +29,12 @@ struct HomeView: View {
}
}
}
+#else
+import SwiftUI
+
+struct HomeView: View {
+ var body: some View {
+ Text("Home unavailable")
+ }
+}
+#endif