Set HTML formatter as static

This commit is contained in:
aringenbach
2022-06-13 13:24:19 +02:00
committed by aringenbach
parent 24c3ba53e5
commit f2e14f2512
3 changed files with 16 additions and 18 deletions

View File

@@ -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))
}