@Published properties playground "viewDidLoad" not called.
Closed this issue · 1 comments
dkulundzic commented
Hey there!
The playground section titled @published properties has an issue where viewDidLoad
's not called at all - due to FormViewController
's view not being accessed at any time. As a consequence, the subscription's not set-up and the example does not work.
This can be easily solved by adding formViewController.loadViewIfNeeded()
after let formViewController = FormViewController(nibName: nil, bundle: nil)
.
AvdLee commented
This should be fixed now!