Skip to content

Instantly share code, notes, and snippets.

@alvaroroyo
Created February 28, 2019 09:53
Show Gist options
  • Save alvaroroyo/8d85bad410c0fc0f652b2cddec9f7b33 to your computer and use it in GitHub Desktop.
Save alvaroroyo/8d85bad410c0fc0f652b2cddec9f7b33 to your computer and use it in GitHub Desktop.
import UIKit
protocol PersonsViewInterface: class {
func showPersonsData(persons: [Person])
func showNoContentScreen()
}
class PersonsViewController: UIViewController, PersonsViewInterface {
@IBOutlet weak var table: UITableView!
var persons:[Person] = []
var presenter: PersonsModuleInterface!
override func viewDidLoad() {
super.viewDidLoad()
self.presenter.updateView()
}
// MARK: PersonsViewInterface
func showPersonsData(persons: [Person]) {
self.persons = persons
self.tableView.reloadData()
}
func showNoContentScreen() {
// Mostrar pantalla sin información
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment