From def9e10f1ad32c0a7f27674e2f82409fcc8267b1 Mon Sep 17 00:00:00 2001 From: Mihael Cholakov Date: Sat, 25 Aug 2018 22:06:05 +0300 Subject: [PATCH] Shortened loadFont --- Sources/Splash/Output/AttributedStringOutputFormat.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Sources/Splash/Output/AttributedStringOutputFormat.swift b/Sources/Splash/Output/AttributedStringOutputFormat.swift index 7cc788e..c245024 100644 --- a/Sources/Splash/Output/AttributedStringOutputFormat.swift +++ b/Sources/Splash/Output/AttributedStringOutputFormat.swift @@ -76,8 +76,7 @@ public extension AttributedStringOutputFormat { private mutating func loadFont() -> UIFont { let size = CGFloat(theme.font.size) - let font = UIFont.defaultFont(ofSize: size) - return font + return .defaultFont(ofSize: size) } #endif