diff --git a/iphone/Maps/UI/Subscription/AllPass/AllPassSubscriptionViewController.swift b/iphone/Maps/UI/Subscription/AllPass/AllPassSubscriptionViewController.swift index 54001efdf63..4d4c04b0139 100644 --- a/iphone/Maps/UI/Subscription/AllPass/AllPassSubscriptionViewController.swift +++ b/iphone/Maps/UI/Subscription/AllPass/AllPassSubscriptionViewController.swift @@ -57,18 +57,17 @@ class AllPassSubscriptionViewController: UIViewController { backgroundImageView.images = [ UIImage(named: "AllPassSubscriptionBg1"), UIImage(named: "AllPassSubscriptionBg2"), - UIImage(named: "AllPassSubscriptionBg3") + UIImage(named: "AllPassSubscriptionBg3"), ] startAnimating() let fontSize: CGFloat = UIScreen.main.bounds.width > 320 ? 17.0 : 14.0 - let fontFamily = UIFont.systemFont(ofSize: fontSize).familyName - let css = "" + let bold = UIFont.systemFont(ofSize: fontSize, weight: .heavy + 100) zip(descriptionSubtitles, ["all_pass_subscription_message_subtitle", "all_pass_subscription_message_subtitle_3", "all_pass_subscription_message_subtitle_2"]).forEach { title, loc in - title.attributedText = NSAttributedString.string(withHtml: css + L(loc), defaultAttributes: [:]) - } + title.attributedText = NSMutableAttributedString(htmlString: L(loc), baseFont: bold) + } preferredContentSize = CGSize(width: 414, height: contentView.frame.height) }