NACCPersistentPrefs

class NACCPersistentPrefs : RVS_PersistentPrefs

This is the subclass of the preferences type that will provide our persistent app settings.

Preference Keys

  • This is an enumeration that will list the prefs keys for us.

    See more

    Declaration

    Swift

    enum Keys : String

Display for Main Watch App Screen

  • Choose which of the states to display in the main screen of the Watch app. The secondary screen will always be a keytag list.

    See more

    Declaration

    Swift

    enum MainWatchState : Int

RVS_PersistentPrefs Conformance

  • This is a list of the keys for our prefs. We should use the enum for the keys (rawValue).

    Declaration

    Swift

    override var keys: [String] { get }

External Prefs Access Computed Properties

  • This stores the cleandate, as an instance of Date

    Declaration

    Swift

    var cleanDate: Date { get set }
  • This stores the last selected tab index (0-based).

    Declaration

    Swift

    var lastSelectedTabIndex: Int { get set }
  • This is set and read by the Watch app. It is not accessed by any of the other targets.

    Declaration

    Swift

    var watchAppDisplayState: MainWatchState { get set }
  • We just make sure that we use the shared group for our prefs.

    We extract the group string from our info.plist.

    Declaration

    Swift

    override init()