RVS_AmbiaMara_BaseViewController

class RVS_AmbiaMara_BaseViewController : UIViewController

This is a base class that provides a background gradient, and “watermark” image. It should be the base for all screens.

  • The alpha to use for normal contrast (center image “watermark”).

    Declaration

    Swift

    private static let _watermarkAlpha: CGFloat
  • The sizing coefficient to use. This compares against the screen size (center image “watermark”).

    Declaration

    Swift

    private static let _watermarkSizeCoefficient: CGFloat
  • This can be overloaded or set, to provide the image to be used as a background gradient.

    Declaration

    Swift

    private var _backgroundGradientImage: UIImage?
  • This can be overloaded or set, to provide the image to be used as a “watermark.”

    Declaration

    Swift

    private var _watermarkImage: UIImage?
  • This is the background image view.

    Declaration

    Swift

    private var _myBackgroundGradientView: UIImageView?
  • This is the background center image view.

    Declaration

    Swift

    private var _myCenterImageView: UIImageView?

Base Class Overrides

  • Declaration

    Swift

    override var prefersStatusBarHidden: Bool { get }
  • Called when the view hierarchy has been completed. We use this call, to create and set the “watermark” image, as well as the background gradient.

    Declaration

    Swift

    override func viewDidLoad()