You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Made some changes to the side menu: The side menu is now wider and accommodates text size and zoom settings for accessibility on smaller screens. The "status" section was made redundant by the button above it, so it has been removed.
- Added dimming effect to main screen when side menu opens.
- Added "rename" button over device name that does the same thing as the rename options in the settings menu.
// this overlay lets you tap on the main screen to close the side menu. swiftUI requires a view that is not Color.clear and has any opacity level > 0 for tap interactions
// }.disabled(bleManager.isScanning && autoconnect) // this button should be disabled and read "Scanning" if autoconnect is enabled and a scan is started. Any other condition when not connected should show the sheet and cover the button
116
+
// Spacer()
117
+
// Button(action: {
118
+
// // if pinetime is connected, button says disconnect, and disconnects on press
119
+
// if bleManager.isConnectedToPinetime {
120
+
// self.bleManager.disconnect()
121
+
// } else {
122
+
// // show connect sheet if pinetime is not connected and autoconnect is disabled,
123
+
// // OR if pinetime is not connected and autoconnect is enabled, BUT there's no UUID saved for autoconnect
124
+
// if !autoconnect || (autoconnect && autoconnectUUID.isEmpty) {
125
+
// SheetManager.shared.showSheet = true
126
+
// } else {
127
+
// // if autoconnect is on and no pinetime is connected, start the scan which will autoconnect if that PT advertises
128
+
// bleManager.startScanning()
129
+
// }
130
+
// }
131
+
// }) {
132
+
// Text(bleManager.isConnectedToPinetime ? "Disconnect from PineTime" : (bleManager.isScanning ? "Scanning" : "Connect to PineTime"))
// }.disabled(bleManager.isScanning && autoconnect) // this button should be disabled and read "Scanning" if autoconnect is enabled and a scan is started. Any other condition when not connected should show the sheet and cover the button
0 commit comments