From 814c71fbe7a208215f918d881e55f3ab4b45c0d7 Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Tue, 23 May 2023 14:45:05 -0500 Subject: [PATCH] debug extension for TextStyle Signed-off-by: Matt Bruce --- VDS/Typography/Typography.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/VDS/Typography/Typography.swift b/VDS/Typography/Typography.swift index a680ebc0..0df38e84 100644 --- a/VDS/Typography/Typography.swift +++ b/VDS/Typography/Typography.swift @@ -329,3 +329,9 @@ extension TextStyle { } } + +extension TextStyle: CustomDebugStringConvertible { + public var debugDescription: String { + "Name: \(self.rawValue) FontFace: \(font.fontName) FontWeight: \(self.rawValue.hasPrefix("bold") ? "bold" : "normal") PointSize: \(font.pointSize) LetterSpacing: \(letterSpacing) LineHeight: \(lineHeight)" + } +}