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:
/// - 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.
convenience init(html: String, font: Font? = nil, locale: Locale = Locale.current) {
let baseFont = font ?? Font.systemFont(ofSize: Font.systemFontSize)
convenience init(html: String, locale: Locale = Locale.current) {
let baseFont = Font.systemFont(ofSize: Font.systemFontSize)
var inTag: InTag = .none
var tag = ""