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 catalogDeclaration
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()
- Defined Properties:
-
Presents the DocsViewController
Declaration
Swift
@objc func getStartedButtonAction()