Skip to content

Instantly share code, notes, and snippets.

@gamzeguven
Created March 24, 2020 19:38
Show Gist options
  • Save gamzeguven/879319b1671c2a95658d846ea1034a9f to your computer and use it in GitHub Desktop.
Save gamzeguven/879319b1671c2a95658d846ea1034a9f to your computer and use it in GitHub Desktop.
import UIKit
protocol HomeViewControllerInterface: class {
func updateTitle()
}
class HomeViewController: UIViewController {
@IBOutlet var helloLabel: UILabel!
var presenter: HomePresenterInterface!
override func viewDidLoad() {
super.viewDidLoad()
self.presenter.viewDidLoad()
}
}
extension HomeViewController: HomeViewControllerInterface {
func updateTitle() {
helloLabel.text = "Hello VIPER"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment