when I call this function the array 'data' is showing empty square brackets, it is not giving me any errors though
here is the code :-

```
import Foundation
import Alamofire
import SwiftyJSON

class Networking {

    var data = [Item]()

    let tVC = TableViewController()

    let url = "https://api.coinmarketcap.com/v1/ticker/"

    func getCoinData(url: String) {

        Alamofire.request(url, method: .get)
            .responseJSON { response in
                if response.result.isSuccess {

                    let coinJSON : JSON = JSON(response.result.value!)

                    for i in 0..<coinJSON.count{
                        let coinName = Item(bitJSON: coinJSON[i])
                        self.data.append(coinName)
                        self.tVC.tableView.reloadData()
                    }
                }
                else {
                    print("Error: \(String(describing: response.result.error))")
                }

        }
    }
}

```