VMF_SettingsViewController
class VMF_SettingsViewController : VMF_BaseViewController
This displays the settings screen.
NOTE: You will see a double-tap gesture recognizer in the IB file.
This “eats” double-taps. It prevents the switch from doing an “about face,” if the user is too fast.
The single-tap gesture recognizer does the same thing, but is the principal trigger.
We use gesture recognizers, instead of controls. Messes with the accessibility a bit, but the delay in responding, means that the user can accidentally trigger multiple switches.
-
The bar button item that takes you to the about screen.
Declaration
Swift
@IBOutlet weak var infoBarButtonItem: UIBarButtonItem?
-
Declaration
Swift
@IBOutlet weak var filterServiceMeetingsSwitchContainer: UIView?
-
The label for the filter Service meetings switch.
Declaration
Swift
@IBOutlet weak var filterServiceMeetingsLabelButton: UIButton?
-
The switch, that, if on, means that Service meetings will be removed from the data.
Declaration
Swift
@IBOutlet weak var filterServiceMeetingsSwitch: UISwitch?
-
Declaration
Swift
@IBOutlet weak var singleTapGestureRecognizer: UITapGestureRecognizer?
-
This is used to prevent double-taps.
Declaration
Swift
@IBOutlet weak var doubleTapEaterGestureRecognizer: UITapGestureRecognizer?
-
This is displayed below the switch, and explains its utility.
Declaration
Swift
@IBOutlet weak var filterServiceMeetingsExplainLabel: UILabel?
-
Called when either the label or switch to filter Service meetings is hit.
Declaration
Swift
@IBAction func filterServiceMeetingsHit(_: Any)
-
Called when the view hierarchy has loaded and initialized.
Declaration
Swift
override func viewDidLoad()