-
Notifications
You must be signed in to change notification settings - Fork 238
Open
Description
I have just read your excellent blog about a simple path to begin with MVVM and also looked at you tutorial repo here.
I where just wondering if the initialization of the view model should be before the initialization of the view. What if the initView rely on some of the closures not yet set.
Tutorial/MVVMPlayground/MVVMPlayground/Module/PhotoList/PhotoListViewController.swift
Line 28 in b389f9e
| initVM() |
I had some code which can so quickly that the closures (in initViewModel) where not yet set. Is there any danger in setting the closures as the first thing in viewDidLoad?
Metadata
Metadata
Assignees
Labels
No labels