A_TimerBaseViewController

@IBDesignable
class A_TimerBaseViewController : UIViewController

This is an abstract base class for view controllers used in the app.

  • This is the initial size for our header label.

    Declaration

    Swift

    let headerFontSize: CGFloat
  • This is a label that is used to replace the Navigation title. We replace it for accessibility reasons.

    Declaration

    Swift

    var titleLabel: UILabel!
  • This is the top (initial) color of the background gradient.

    Declaration

    Swift

    @IBInspectable
    var gradientTopColor: UIColor
  • This is the bottom (final) color of the background gradient.

    Declaration

    Swift

    @IBInspectable
    var gradientBottomColor: UIColor
  • This is a gradient that is displayed across the background, from top to bottom, using the two colors specified in the IB properties.

    Declaration

    Swift

    let gradientLayer: CAGradientLayer
  • This gets the Navigation Bar Title, and sets the Navigation Bar Title from a given localization token.

    Declaration

    Swift

    var screenTitle: String { get set }
  • Called to select the succeeding Tab

    Declaration

    Swift

    @IBAction
    func selectNextPage(_: UIGestureRecognizer)
  • Called to select the preceeding Tab

    Declaration

    Swift

    @IBAction
    func selectPreviousPage(_: UIGestureRecognizer)
  • Called when the view has finished loading.

    Paints the rear gradient layer.

    Declaration

    Swift

    override func viewDidLoad()
  • Called when the layout is changed.

    Resets the gradient layer frame to fill the screen.

    Declaration

    Swift

    override func viewDidLayoutSubviews()
  • Called when the will appear.

    Sets the app styling to navBar and TabBar.

    Declaration

    Swift

    override func viewWillAppear(_ animated: Bool)

    Parameters

    animated

    ignored by this function, but passed to the superclass.

  • This method applies the app styling to the More… view.

    Declaration

    Swift

    func gussyUpTheMoreNavigation()
  • This method adds all the accessibility stuff. It is meant to be overridden.

    Declaration

    Swift

    func addAccessibilityStuff()