BuildExpireAlarmEditor.swift 1.0 KB

123456789101112131415161718192021222324252627282930313233
  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: "Sends a reminder before the looping-app build you’re following reaches its "
  10. + "TestFlight or Xcode expiry date. Works with Trio 0.4 and later."
  11. )
  12. AlarmGeneralSection(alarm: $alarm)
  13. AlarmStepperSection(
  14. header: String(localized: "Notice Period"),
  15. footer: String(localized: "Choose how many days of notice you’d like before the build becomes unusable."),
  16. title: String(localized: "Days of notice"),
  17. range: 1 ... 14,
  18. step: 1,
  19. unitLabel: alarm.type.snoozeTimeUnit.label,
  20. value: $alarm.threshold
  21. )
  22. AlarmActiveSection(alarm: $alarm)
  23. AlarmAudioSection(alarm: $alarm)
  24. AlarmSnoozeSection(alarm: $alarm)
  25. }
  26. }
  27. }