Created
March 24, 2020 19:38
-
-
Save gamzeguven/879319b1671c2a95658d846ea1034a9f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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