From 5eaab3ce952455ddb8201d9f3b10fdbbd73cb227 Mon Sep 17 00:00:00 2001 From: Alexander Boriskov Date: Mon, 28 Sep 2020 15:04:14 +0300 Subject: [PATCH] [iOS] Removed css from AllPassSubscriptionViewController https://jira.mail.ru/browse/MAPSME-14934 --- .../AllPass/AllPassSubscriptionViewController.swift | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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) }