BuildExpireAlarmEditor.swift 1.1 KB

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