NACCPersistentPrefs
class NACCPersistentPrefs : RVS_PersistentPrefs
This is the subclass of the preferences type that will provide our persistent app settings.
-
This is an enumeration that will list the prefs keys for us.
See moreDeclaration
Swift
enum Keys : String
-
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 moreDeclaration
Swift
enum MainWatchState : Int
-
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 }
-
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()