Group

private struct Group : Codable

The portable representation of a timer group and its presentation settings.

  • The group’s alarm behavior, encoded independently of the sound file.

    See more

    Declaration

    Swift

    enum AlarmMode : String, Codable
  • id

    The stable identifier of the timer group.

    Declaration

    Swift

    let id: UUID
  • The raw value of the group’s countdown display style.

    Declaration

    Swift

    let displayType: String
  • The output to use when a timer reaches its alarm.

    Declaration

    Swift

    let alarmMode: AlarmMode
  • The bundled alarm filename for sound-based alarm modes.

    Declaration

    Swift

    let alarmFilename: String?
  • The bundled filename played when advancing to the next timer.

    Declaration

    Swift

    let transitionSoundFilename: String?
  • The timer presets in their original order within the group.

    Declaration

    Swift

    let timers: [Preset]
  • Copies the presentation settings and ordered presets from a live timer group.

    Declaration

    Swift

    init(_ group: TimerGroup)
  • Extracts the bundle-relative filename from a stored sound URL.

    Declaration

    Swift

    private static func soundFilename(_ value: String) -> String
  • Whether the group has a supported display style, alarm configuration, and valid presets.

    Declaration

    Swift

    var isValid: Bool { get }
  • Checks that a sound reference is a single filename.

    Declaration

    Swift

    private static func isFilename(_ value: String) -> Bool
  • Converts the group metadata to the keys understood by the app’s settings serializer.

    Declaration

    Swift

    var persistentValues: [String : any Hashable] { get }