2 // LoginViewController.swift
5 // Created by Pawel Dabrowski on 18/09/2018.
6 // Copyright © 2018 Fundacja Nowoczesna Polska. All rights reserved.
11 class LoginViewController: WLViewController {
13 @IBOutlet weak var titleLabel: UILabel!
14 @IBOutlet weak var desc1: UILabel!
15 @IBOutlet weak var desc2: UILabel!
16 @IBOutlet weak var desc3: UILabel!
17 @IBOutlet weak var desc1Checkmark: UIImageView!
18 @IBOutlet weak var desc2Checkmark: UIImageView!
19 @IBOutlet weak var desc3Checkmark: UIImageView!
21 @IBOutlet weak var loginButton: UIButton!
24 override func viewDidLoad() {
27 titleLabel.text = "login_title".localized
28 desc1.text = "login_benefits".localized
29 desc2.text = "login_benefits_2".localized
30 desc3.text = "login_benefits_3".localized
31 loginButton.text = "menu_login".localized.uppercased()
32 loginButton.layer.cornerRadius = 18
33 loginButton.layer.borderWidth = 1.0
34 loginButton.layer.borderColor = UIColor.white.cgColor
35 let color = Constants.Colors.orangeColor()
36 desc1Checkmark.tintColor = color
37 desc2Checkmark.tintColor = color
38 desc3Checkmark.tintColor = color
42 @IBAction func loginButtonAction(_ sender: Any) {
43 appDelegate.login(fromViewController: self.navigationController!)