Browse Source

Hide notification time instead of disabling

main
FIGBERT 8 months ago
parent
commit
72eb2758ad
Signed by: FIGBERT GPG Key ID: 67F1598D607A844B
  1. 29
      Shared/Settings Views/NotificationSection.swift
  2. 4
      iOS/Info.plist
  3. 4
      macOS/Info.plist

29
Shared/Settings Views/NotificationSection.swift

@ -28,20 +28,21 @@ struct NotificationSection: View {
Text("txtodo notifications \(notificationsEnabled ? "enabled" : "disabled")")
#endif
}
HStack {
Label("time scheduled", systemImage: "clock")
Spacer()
Picker(
selection: $notificationTime,
label: Text("notification time"),
content: {
Text("8:30").tag(0)
Text("9:30").tag(1)
Text("10:30").tag(2)
})
.labelsHidden()
.disabled(!notificationsEnabled)
.pickerStyle(SegmentedPickerStyle())
if self.notificationsEnabled {
HStack {
Label("time scheduled", systemImage: "clock")
Spacer()
Picker(
selection: $notificationTime,
label: Text("notification time"),
content: {
Text("8:30").tag(0)
Text("9:30").tag(1)
Text("10:30").tag(2)
})
.labelsHidden()
.pickerStyle(SegmentedPickerStyle())
}
}
}
}

4
iOS/Info.plist

@ -15,9 +15,9 @@
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>3.0.8</string>
<string>3.0.9</string>
<key>CFBundleVersion</key>
<string>3.0.8</string>
<string>3.0.9</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UIApplicationSceneManifest</key>

4
macOS/Info.plist

@ -17,9 +17,9 @@
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>1.0.8</string>
<string>1.0.9</string>
<key>CFBundleVersion</key>
<string>1.0.8</string>
<string>1.0.9</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.productivity</string>
<key>LSMinimumSystemVersion</key>

Loading…
Cancel
Save