오디션 정보, 오디션 캐릭터 정보

- 줄간격 5로 설정
This commit is contained in:
Yu Sung 2025-01-08 03:31:24 +09:00
parent df9395cdef
commit ca7a2d4c72
1 changed files with 6 additions and 3 deletions

View File

@ -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