BuildExpireAlarmEditor.swift 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. // LoopFollow
  2. // BuildExpireAlarmEditor.swift
  3. import SwiftUI
  4. struct BuildExpireAlarmEditor: View {
  5. @Binding var alarm: Alarm
  6. var body: some View {
  7. Group {
  8. InfoBanner(
  9. text: String(localized: "Sends a reminder before the looping-app build you’re following reaches its TestFlight or Xcode expiry date. Works with Trio 0.4 and later.")
  10. )
  11. AlarmGeneralSection(alarm: $alarm)
  12. AlarmStepperSection(
  13. header: String(localized: "Notice Period"),
  14. footer: String(localized: "Choose how many days of notice you’d like before the build becomes unusable."),
  15. title: String(localized: "Days of notice"),
  16. range: 1 ... 14,
  17. step: 1,
  18. unitLabel: alarm.type.snoozeTimeUnit.label,
  19. value: $alarm.threshold
  20. )
  21. AlarmActiveSection(alarm: $alarm)
  22. AlarmAudioSection(alarm: $alarm)
  23. AlarmSnoozeSection(alarm: $alarm)
  24. }
  25. }
  26. }