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.

20 lines
480 B

5 years ago
  1. //
  2. // PresenterProtocol.swift
  3. // GME Remit
  4. //
  5. // Created by InKwon Devik Kim on 26/06/2019.
  6. // Copyright © 2019 Gobal Money Express Co. Ltd. All rights reserved.
  7. //
  8. protocol TablePresenterProtocol {
  9. var cellTitle: String? { get }
  10. var cellImage: UIImage? { get }
  11. func isEqual(with: TablePresenterProtocol) -> Bool
  12. }
  13. extension TablePresenterProtocol {
  14. func isEqual(with target: TablePresenterProtocol) -> Bool {
  15. return target.cellTitle == self.cellTitle
  16. }
  17. }