I am trying to return the "cardsarray" which contain the name, designation, and 4 more fields. When API is being called it returns the array of object which gets stored into my array.
But when I run the application doesn't show anything in the table view.
I tried some print statement. It came out that the function is returning before the API is being called. Not able to understand why. Please help
{
designation = "Manager";
email = "Sample@gmail.com";
mobile =1234567899;
name = "Sample";
status = 0;
Company = "ABC Corp"
},
{
"pending_staff_pic" = 1;
}