Commit 0e0bfffa authored by Jose Blaya's avatar Jose Blaya
Browse files

set label text in main thread

parent 61d0ea83
......@@ -142,9 +142,14 @@ class PurchaseTrialViewController: AutolayoutViewController, BrandableNavigation
purchase.detail = L10n.Welcome.Plan.Yearly.detailFormat(currencySymbol, purchase.product.price.description)
purchase.bestValue = true
let price = L10n.Welcome.Plan.Yearly.detailFormat(currencySymbol, purchase.product.price.description)
subtitleLabel.text = L10n.Signup.Purchase.Trials.Price.after(price)
Theme.current.makeSmallLabelToStandOut(subtitleLabel,
withTextToStandOut: price)
DispatchQueue.main.async { [weak self] in
if let label = self?.subtitleLabel {
label.text = L10n.Signup.Purchase.Trials.Price.after(price)
Theme.current.makeSmallLabelToStandOut(label,
withTextToStandOut: price)
}
}
allPlans[0] = purchase
selectedPlanIndex = 0
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment