RecentGaugeActor

actor RecentGaugeActor

An actor that manages the recent gauges. The recent gauges are stored in the user defaults. Max 10 recent gauges are stored.

Public

  • Undocumented

    Declaration

    Swift

    public func deleteAll()

Internal

  • Undocumented

    Declaration

    Swift

    static let shared: RecentGaugeActor
  • Gauges that have been viewed recently.

    Declaration

    Swift

    var recentGauges: [RecentGauge] { get set }
  • Adds a gauge to the recent gauges list.

    Declaration

    Swift

    func addRecentGauge(gaugeID: PersistentIdentifier, name: String, state: String)