오디션 정보, 오디션 캐릭터 정보
- 줄간격 5로 설정
This commit is contained in:
@@ -14,15 +14,18 @@ struct ExpandableTextView: View {
|
|||||||
let text: String
|
let text: String
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
let customFont = UIFont(name: Font.medium.rawValue, size: 12.9) ?? UIFont.systemFont(ofSize: 12.9)
|
let customFont = UIFont(name: Font.medium.rawValue, size: 12.3) ?? UIFont.systemFont(ofSize: 12.3)
|
||||||
let lineHeight = customFont.lineHeight
|
|
||||||
|
let lineSpacing = CGFloat(5)
|
||||||
|
let lineHeight = customFont.lineHeight + lineSpacing
|
||||||
|
|
||||||
VStack(alignment: .leading) {
|
VStack(alignment: .leading) {
|
||||||
Text(text)
|
Text(text)
|
||||||
.font(.custom(Font.medium.rawValue, size: 13.3))
|
.font(.custom(Font.medium.rawValue, size: 14))
|
||||||
.foregroundColor(Color.gray77)
|
.foregroundColor(Color.gray77)
|
||||||
.lineLimit(isExpanded ? nil : 3) // 확장 시 전체 표시, 아니면 3줄로 제한
|
.lineLimit(isExpanded ? nil : 3) // 확장 시 전체 표시, 아니면 3줄로 제한
|
||||||
.truncationMode(.tail)
|
.truncationMode(.tail)
|
||||||
|
.lineSpacing(lineSpacing)
|
||||||
.background(
|
.background(
|
||||||
GeometryReader { proxy in
|
GeometryReader { proxy in
|
||||||
Color.clear
|
Color.clear
|
||||||
|
Reference in New Issue
Block a user