| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- // LoopFollow
- // BuildExpireAlarmEditor.swift
- // Created by Jonas Björkert on 2025-04-26.
- import SwiftUI
- struct BuildExpireAlarmEditor: View {
- @Binding var alarm: Alarm
- var body: some View {
- Form {
- InfoBanner(
- text: "Sends a reminder before the looping-app build you’re following reaches its "
- + "TestFlight or Xcode expiry date. Currently only works for Trio 0.4 and later."
- )
- AlarmGeneralSection(alarm: $alarm)
- AlarmStepperSection(
- footer: "Choose how many days of notice you’d like before the build becomes unusable.",
- title: "Expires In",
- range: 1 ... 14,
- step: 1,
- unitLabel: alarm.type.snoozeTimeUnit.label,
- value: Binding(
- get: { alarm.threshold ?? 1 },
- set: { alarm.threshold = $0 }
- )
- )
- AlarmActiveSection(alarm: $alarm)
- AlarmAudioSection(alarm: $alarm)
- AlarmSnoozeSection(
- alarm: $alarm,
- range: 1 ... 14,
- step: 1
- )
- }
- .navigationTitle(alarm.type.rawValue)
- }
- }
|