Remove font parameter

This commit is contained in:
Nate Weaver 2020-04-28 15:54:56 -05:00
parent ee4830022e
commit e6cbdb5d23
1 changed files with 2 additions and 3 deletions

View File

@ -130,10 +130,9 @@ extension NSAttributedString {
/// ///
/// - Parameters: /// - Parameters:
/// - html: The HTML text. /// - html: The HTML text.
/// - font: The font to use. Defaults to the system font.
/// - locale: The locale used for quotation marks when parsing `<q>` tags. /// - locale: The locale used for quotation marks when parsing `<q>` tags.
convenience init(html: String, font: Font? = nil, locale: Locale = Locale.current) { convenience init(html: String, locale: Locale = Locale.current) {
let baseFont = font ?? Font.systemFont(ofSize: Font.systemFontSize) let baseFont = Font.systemFont(ofSize: Font.systemFontSize)
var inTag: InTag = .none var inTag: InTag = .none
var tag = "" var tag = ""