summaryrefslogtreecommitdiff
path: root/watchos/InfiniSolar/InfiniSolar WatchKit Extension/InfiniSolarApp.swift
diff options
context:
space:
mode:
Diffstat (limited to 'watchos/InfiniSolar/InfiniSolar WatchKit Extension/InfiniSolarApp.swift')
-rw-r--r--watchos/InfiniSolar/InfiniSolar WatchKit Extension/InfiniSolarApp.swift43
1 files changed, 43 insertions, 0 deletions
diff --git a/watchos/InfiniSolar/InfiniSolar WatchKit Extension/InfiniSolarApp.swift b/watchos/InfiniSolar/InfiniSolar WatchKit Extension/InfiniSolarApp.swift
new file mode 100644
index 0000000..c6371b4
--- /dev/null
+++ b/watchos/InfiniSolar/InfiniSolar WatchKit Extension/InfiniSolarApp.swift
@@ -0,0 +1,43 @@
+//
+// InfiniSolarApp.swift
+// InfiniSolar WatchKit Extension
+//
+// Created by Evgeny Zinoviev on 03.08.2021.
+//
+
+import SwiftUI
+
+@main
+struct InfiniSolarApp: App {
+ @SceneBuilder var body: some Scene {
+ WindowGroup {
+ NavigationView {
+ ScrollView(.vertical) {
+ VStack(alignment: .leading) {
+ InverterView()
+ self.divider()
+
+ RoomView()
+ self.divider()
+
+ PumpView()
+ }
+ .frame(
+ minWidth: 0,
+ maxWidth: .infinity,
+ minHeight: 0,
+ maxHeight: .infinity,
+ alignment: .topLeading
+ )
+ }
+ }
+ }
+
+ WKNotificationScene(controller: NotificationController.self, category: "myCategory")
+ }
+
+ func divider() -> some View {
+ return Divider()
+ .padding(EdgeInsets(top: 12, leading: 4, bottom: 12, trailing: 4))
+ }
+}