feat(character-detail): 상세 화면 도입 및 네비게이션/API 연동

This commit is contained in:
Yu Sung
2025-09-02 01:10:41 +09:00
parent 26271e421d
commit f11120b8d0
12 changed files with 571 additions and 10 deletions

View File

@@ -14,14 +14,14 @@ struct ExpandableTextView: View {
let text: String
var body: some View {
let customFont = UIFont(name: Font.medium.rawValue, size: 12.3) ?? UIFont.systemFont(ofSize: 12.3)
let customFont = UIFont(name: Font.preRegular.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: 14))
.font(.custom(Font.preRegular.rawValue, size: 14))
.foregroundColor(Color.gray77)
.lineLimit(isExpanded ? nil : 3) // , 3
.truncationMode(.tail)