Set HTML formatter as static

This commit is contained in:
aringenbach
2022-06-13 13:24:19 +02:00
committed by aringenbach
parent 855a92dac2
commit 5fff2bb1b1
3 changed files with 16 additions and 18 deletions
@@ -19,11 +19,11 @@ import UIKit
@available(iOS 14.0, *)
struct AnalyticsPromptStrings: AnalyticsPromptStringsProtocol {
let point1 = HTMLFormatter().formatHTML(VectorL10n.analyticsPromptPoint1,
withAllowedTags: ["b", "p"],
font: UIFont.systemFont(ofSize: UIFont.systemFontSize))
let point2 = HTMLFormatter().formatHTML(VectorL10n.analyticsPromptPoint2,
withAllowedTags: ["b", "p"],
font: UIFont.systemFont(ofSize: UIFont.systemFontSize))
let point1 = HTMLFormatter.formatHTML(VectorL10n.analyticsPromptPoint1,
withAllowedTags: ["b", "p"],
font: UIFont.systemFont(ofSize: UIFont.systemFontSize))
let point2 = HTMLFormatter.formatHTML(VectorL10n.analyticsPromptPoint2,
withAllowedTags: ["b", "p"],
font: UIFont.systemFont(ofSize: UIFont.systemFontSize))
}