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
63 lines
1.6 KiB
//
|
|
// BiometricAuthenticationViewController.swift
|
|
// GME Remit
|
|
//
|
|
// Created by InKwon Kim on 30/03/2019.
|
|
//Copyright © 2019 Gobal Money Express Co. Ltd. All rights reserved.
|
|
//
|
|
|
|
import UIKit
|
|
|
|
class BiometricAuthenticationViewController: UIViewController, BiometricAuthenticationViewInterface {
|
|
var information: String? {
|
|
didSet {
|
|
self.informationLabel.text = information
|
|
}
|
|
}
|
|
|
|
|
|
// MARK: Properties
|
|
var presenter: BiometricAuthenticationModuleInterface?
|
|
|
|
// MARK: IBOutlets
|
|
|
|
@IBOutlet private weak var biometricAuthenticationImageButton: UIButton!
|
|
@IBOutlet private weak var informationLabel: UILabel!
|
|
|
|
// MARK: VC's Life cycle
|
|
|
|
override func viewDidLoad() {
|
|
super.viewDidLoad()
|
|
self.setup()
|
|
}
|
|
|
|
// MARK: IBActions
|
|
|
|
@IBAction func authenticationButtonTouch(_ sender: Any) {
|
|
self.presenter?.showAuthentication()
|
|
}
|
|
|
|
// MARK: Other Functions
|
|
|
|
private func setup() {
|
|
// all setup should be done here
|
|
self.setUI()
|
|
self.presenter?.setInformation()
|
|
self.presenter?.showAuthentication()
|
|
}
|
|
|
|
private func setUI(){
|
|
setBackground()
|
|
setButton()
|
|
}
|
|
|
|
private func setBackground(){
|
|
self.view.backgroundColor = AppConstants.themeRedColor
|
|
}
|
|
|
|
private func setButton(){
|
|
self.biometricAuthenticationImageButton.layer.borderColor = UIColor(red:0.91, green:0.93, blue:0.95, alpha:1.0).cgColor
|
|
self.biometricAuthenticationImageButton.layer.cornerRadius = 10
|
|
self.biometricAuthenticationImageButton.layer.borderWidth = 1
|
|
}
|
|
}
|