diff --git a/Sources/Runestone/Library/DefaultStringAttributes.swift b/Sources/Runestone/Library/DefaultStringAttributes.swift index 630982e0..5840d17c 100644 --- a/Sources/Runestone/Library/DefaultStringAttributes.swift +++ b/Sources/Runestone/Library/DefaultStringAttributes.swift @@ -6,27 +6,23 @@ struct DefaultStringAttributes { private let font: UIFont private let kern: CGFloat private let tabWidth: CGFloat - private let lineHeightMultiplier: CGFloat init( textColor: UIColor, font: UIFont, kern: CGFloat, - tabWidth: CGFloat, - lineHeightMultiplier: CGFloat = 1 + tabWidth: CGFloat ) { self.textColor = textColor self.font = font self.kern = kern self.tabWidth = tabWidth - self.lineHeightMultiplier = lineHeightMultiplier } func apply(to attributedString: NSMutableAttributedString) { let paragraphStyle = NSMutableParagraphStyle() paragraphStyle.tabStops = [] paragraphStyle.defaultTabInterval = tabWidth - paragraphStyle.lineHeightMultiple = lineHeightMultiplier let range = NSRange(location: 0, length: attributedString.length) let attributes: [NSAttributedString.Key: Any] = [ .foregroundColor: textColor,