HomeViewController

class HomeViewController : UIViewController

This is a home controller for the application

  • Undocumented

    Declaration

    Swift

    var backgroundImageView: UIImageView
  • Undocumented

    Declaration

    Swift

    var logoImageView: UIImageView
  • Undocumented

    Declaration

    Swift

    var getStartedButton: UIButton
  • Undocumented

    Declaration

    Swift

    override func viewDidLoad()
  • Background image base setup

    Usage:

    setupBackgroundImage(with: "home_image")
    

    Note

    It’s important to have the image named correctly and added to the assets catalog

    Declaration

    Swift

    func setupBackgroundImage(with imageName: String)

    Parameters

    imageName

    Define the image name for the background

  • Logo image base setup

    Declaration

    Swift

    func setupLogo()
  • Get Started button base setup

    • Defined Properties:
      • Title
      • Title color
      • Title Font
      • Background color
      • Corner radius
      • Mask to bounds
      • Target

    Declaration

    Swift

    func setupGetStatedButton()
  • Handle all the UI components sizes and positioning for HomeViewController

    Note

    This is how you can add notes to the documentation

    Warning

    This is an example of adding warning to the documentation.

    Declaration

    Swift

    func setupUI()