From ca7a2d4c7292f08c3b81d53917a4bc771af3f6f8 Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Wed, 8 Jan 2025 03:31:24 +0900 Subject: [PATCH] =?UTF-8?q?=EC=98=A4=EB=94=94=EC=85=98=20=EC=A0=95?= =?UTF-8?q?=EB=B3=B4,=20=EC=98=A4=EB=94=94=EC=85=98=20=EC=BA=90=EB=A6=AD?= =?UTF-8?q?=ED=84=B0=20=EC=A0=95=EB=B3=B4=20-=20=EC=A4=84=EA=B0=84?= =?UTF-8?q?=EA=B2=A9=205=EB=A1=9C=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SodaLive/Sources/CustomView/ExpandableTextView.swift | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/SodaLive/Sources/CustomView/ExpandableTextView.swift b/SodaLive/Sources/CustomView/ExpandableTextView.swift index 58c71b4..2518a9a 100644 --- a/SodaLive/Sources/CustomView/ExpandableTextView.swift +++ b/SodaLive/Sources/CustomView/ExpandableTextView.swift @@ -14,15 +14,18 @@ struct ExpandableTextView: View { let text: String var body: some View { - let customFont = UIFont(name: Font.medium.rawValue, size: 12.9) ?? UIFont.systemFont(ofSize: 12.9) - let lineHeight = customFont.lineHeight + let customFont = UIFont(name: Font.medium.rawValue, size: 12.3) ?? UIFont.systemFont(ofSize: 12.3) + + let lineSpacing = CGFloat(5) + let lineHeight = customFont.lineHeight + lineSpacing VStack(alignment: .leading) { Text(text) - .font(.custom(Font.medium.rawValue, size: 13.3)) + .font(.custom(Font.medium.rawValue, size: 14)) .foregroundColor(Color.gray77) .lineLimit(isExpanded ? nil : 3) // 확장 시 전체 표시, 아니면 3줄로 제한 .truncationMode(.tail) + .lineSpacing(lineSpacing) .background( GeometryReader { proxy in Color.clear