File tree Expand file tree Collapse file tree
Infini-iOS/Settings/Notification Settings Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments