Q:

Accessing ViewController class from another class in Swift

I'm new in iOS development,
I have and "API Helper" Swift class that gets some data as a JSON array. And when the array is ready I want to call a method in my MasterViewController to update the tableView with the data.
I tried to do like that:
var facilities : [Facility]? {
        didSet {

            MasterViewController().facilitiesLoaded()
        }
    }

And then reload the tableView but without seeing anything. 
I think the problem is that I'm creating a new instance of the ViewController, but what I should have is to get access to the current instance of the class.
Any idea, or a better design? Thanks..

A:

Thanks to @dcestari,
I did added callback blocks to the API call and handled it in the ViewController and that did the trick
In API caller method:
func loadFacilities(completionHandler:(() -> Void!)) {
    // do stuff
    completionHander()
}

In the ViewController:
func getFacilities() {
        api.loadFacilities({
             // update tableView
        })
    }

