diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2023-01-04 04:04:03 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2023-01-04 04:04:03 +0300 |
commit | bb32e56ca28bb43d5d5afef737f25e4725887725 (patch) | |
tree | 519388eb284adeb47744a9ebc334bdf9ff5444a6 /watchos/InfiniSolar/InfiniSolar WatchKit Extension/InfiniSolarApp.swift | |
parent | d549f428cbbd54c49a90f92928e670d373c4a0d9 (diff) |
move watchos app sources here (which should be rewritten anyway, and usable only in very specific conditions)
Diffstat (limited to 'watchos/InfiniSolar/InfiniSolar WatchKit Extension/InfiniSolarApp.swift')
-rw-r--r-- | watchos/InfiniSolar/InfiniSolar WatchKit Extension/InfiniSolarApp.swift | 43 |
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)) + } +} |