You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
1.6 KiB

  1. //
  2. // BiometricAuthenticationViewController.swift
  3. // GME Remit
  4. //
  5. // Created by InKwon Kim on 30/03/2019.
  6. //Copyright © 2019 Gobal Money Express Co. Ltd. All rights reserved.
  7. //
  8. import UIKit
  9. class BiometricAuthenticationViewController: UIViewController, BiometricAuthenticationViewInterface {
  10. var information: String? {
  11. didSet {
  12. self.informationLabel.text = information
  13. }
  14. }
  15. // MARK: Properties
  16. var presenter: BiometricAuthenticationModuleInterface?
  17. // MARK: IBOutlets
  18. @IBOutlet private weak var biometricAuthenticationImageButton: UIButton!
  19. @IBOutlet private weak var informationLabel: UILabel!
  20. // MARK: VC's Life cycle
  21. override func viewDidLoad() {
  22. super.viewDidLoad()
  23. self.setup()
  24. }
  25. // MARK: IBActions
  26. @IBAction func authenticationButtonTouch(_ sender: Any) {
  27. self.presenter?.showAuthentication()
  28. }
  29. // MARK: Other Functions
  30. private func setup() {
  31. // all setup should be done here
  32. self.setUI()
  33. self.presenter?.setInformation()
  34. self.presenter?.showAuthentication()
  35. }
  36. private func setUI(){
  37. setBackground()
  38. setButton()
  39. }
  40. private func setBackground(){
  41. self.view.backgroundColor = AppConstants.themeRedColor
  42. }
  43. private func setButton(){
  44. self.biometricAuthenticationImageButton.layer.borderColor = UIColor(red:0.91, green:0.93, blue:0.95, alpha:1.0).cgColor
  45. self.biometricAuthenticationImageButton.layer.cornerRadius = 10
  46. self.biometricAuthenticationImageButton.layer.borderWidth = 1
  47. }
  48. }