People have given a decision on how to load the view (some of which you should never use ( loadView() ), so here you can check if your view is loaded
I ran into a problem because I had a property with the didSet observer to update the user interface, which obviously does not work if the outputs are not already set, here is an example code to get around it:
var name: String? { didSet { updateNameLabel() } } override func viewDidLoad() { super.viewDidLoad() updateNameLabel() } func updateRoomLabel() { guard isViewLoaded() else { return } [...] }
So, now that you show that the sockets are updated, but also every time you update a property
hashier Sep 26 '16 at 15:05 2016-09-26 15:05
source share