Remove font parameter
This commit is contained in:
parent
ee4830022e
commit
e6cbdb5d23
|
@ -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 = ""
|
||||||
|
|
Loading…
Reference in New Issue