I have one view controller and a calculator class. I have an instance of the calculator in the view controller and call a data fetching method through the instance. This also updates variables of the calculator instance. I would like to update a UILabel after the data fetch is complete but when I include
nameOFLabel.text = String(calculatorInstance.updatedValue)
as a completion handler of the data fetching method the label does not update when run even know the value changes.