Skip to content

Commit 9dbb18b

Browse files
committed
.
1 parent 34897ae commit 9dbb18b

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
//
2+
// WatchNotificationsView.swift
3+
// Infini-iOS
4+
//
5+
// Created by xan-m on 8/16/21.
6+
//
7+
//
8+
9+
10+
import Foundation
11+
import SwiftUI
12+
13+
struct WatchNotifications: View {
14+
15+
// not calling this view for now because I have like 3 settings to manipulate.
16+
// TODO: decide if this view is even necessary, and delete if not
17+
18+
@AppStorage("watchNotifications") var watchNotifications: Bool = true
19+
@AppStorage("autoconnect") var autoconnect: Bool = false
20+
@AppStorage("batteryNotification") var batteryNotification: Bool = false
21+
22+
23+
var body: some View {
24+
VStack (alignment: .leading){
25+
Text("Watch Settings")
26+
.font(.largeTitle)
27+
.padding(.bottom, 10)
28+
}
29+
Form {
30+
Toggle("Watch Notifications", isOn: $watchNotifications)
31+
Toggle("Autoconnect", isOn: $autoconnect)
32+
Toggle("Notify about Low Battery", isOn: $batteryNotification)
33+
}
34+
}
35+
}

0 commit comments

Comments
 (0)