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.

58 lines
1.1 KiB

  1. //
  2. // BiometricSwitchViewController.swift
  3. // GME Remit
  4. //
  5. // Created by Swift Tech on 20/10/2021.
  6. //Copyright © 2021 Gobal Money Express Co. Ltd. All rights reserved.
  7. //
  8. import UIKit
  9. class BiometricSwitchViewController: UIViewController {
  10. // MARK: Properties
  11. var presenter: BiometricSwitchModuleInterface?
  12. // MARK: IBOutlets
  13. // MARK: VC's Life cycle
  14. override func viewDidLoad() {
  15. super.viewDidLoad()
  16. self.setup()
  17. }
  18. // MARK: IBActions
  19. // MARK: Other Functions
  20. private func setup() {
  21. // all setup should be done here
  22. }
  23. }
  24. // MARK: BiometricSwitchViewInterface
  25. extension BiometricSwitchViewController: BiometricSwitchViewInterface {
  26. func showLoading() {
  27. self.showProgressHud()
  28. }
  29. func hideLoading() {
  30. self.hideProgressHud()
  31. }
  32. func show(error: String) {
  33. self.alert(type: .error, message: error)
  34. }
  35. func show(message: String) {
  36. self.alertWithOk(
  37. type: .success,
  38. message: message,
  39. title: "Success",
  40. okTitle: "Ok"
  41. ) {
  42. }
  43. }
  44. }