Commit d98ad532 authored by Jose Blaya's avatar Jose Blaya
Browse files

Merge branch '158-fix-settext-label-in-background-thread' into 'release/2.2.0'

Resolve "Fix setText label in background thread"

See merge request ios/client-library-apple!215
parents 61d0ea83 0e0bfffa
......@@ -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)
DispatchQueue.main.async { [weak self] in
if let label = self?.subtitleLabel {
label.text = L10n.Signup.Purchase.Trials.Price.after(price)
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