RiValT_DisplaySettings_ViewController
@MainActor
class RiValT_DisplaySettings_ViewController : RiValT_Base_ViewController
This is displayed in a popover, and allows the user to select which display type the group will use.
It presents a segmented switch at the top, with three choices, and a larger preview area, directly below the switch. The preview area shows a “mockup” of the selected display type.
It can be:
Numerical
Circular
Stoplights
-
The storyboard ID for instantiating the class.
Declaration
Swift
@MainActor static let storyboardID: String
-
The timer group associated with these settings.
Declaration
Swift
@MainActor weak var group: TimerGroup?
-
The segmented control that allows selection of the display type.
Declaration
Swift
@IBOutlet @MainActor weak var displaySelectionSegmentedControl: UISegmentedControl?
-
The image that is shown, representing the display.
Declaration
Swift
@IBOutlet @MainActor weak var previewImageView: UIImageView?
-
The size of the popover.
Declaration
Swift
@MainActor override var preferredContentSize: CGSize { get set }
-
Called when the view has loaded.
Declaration
Swift
@MainActor override func viewDidLoad()
-
Sets up the main selection control.
Declaration
Swift
@MainActor func setUpSelectionControl()
-
Selects which image to display in the main area.
Declaration
Swift
@MainActor func selectDisplayType()
-
Called when the selection is changed.
Declaration
Swift
@IBAction @MainActor func displaySelectionChanged(_: Any)