Created
May 30, 2018 10:11
-
-
Save bobgodwinx/c84331b9f8b7169183aa8e48e3b5e8a4 to your computer and use it in GitHub Desktop.
S4D08
This file contains hidden or 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
| /// Now composing our `MVVM` | |
| /// just like a plug and play | |
| /// `Model` | |
| let provider = ContactProvider() | |
| /// `ViewModel` | |
| let viewModel = ContactViewModel(provider) | |
| /// `View` | |
| let viewController = ContactViewController(viewModel) | |
| // Present the view controller in the Live View window | |
| PlaygroundPage.current.liveView = viewController |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment