커스텀 폰트 pretendard-regular, gmarket-regular를 사용하고 있던 것을 appFont 모디파이어를 사용하여 한국어는 pretendard, 그 외에는 시스템 폰트를 사용하도록 수정

This commit is contained in:
Yu Sung
2026-01-23 03:25:19 +09:00
parent c9c1db39a6
commit b3331d5512
44 changed files with 166 additions and 150 deletions

View File

@@ -27,7 +27,7 @@ struct CreatorCommunityItemView: View {
.foregroundColor(Color.white)
Text(item.relativeTimeText())
.font(.custom(Font.preRegular.rawValue, size: 14))
.appFont(size: 14, weight: .regular)
.foregroundColor(Color(hex: "78909C"))
}
@@ -36,7 +36,7 @@ struct CreatorCommunityItemView: View {
HStack(spacing: 0) {
Text(item.content)
.font(.custom(Font.preRegular.rawValue, size: 18))
.appFont(size: 18, weight: .regular)
.foregroundColor(Color(hex: "B0BEC5"))
.fixedSize(horizontal: false, vertical: true)
.lineLimit(3)
@@ -65,7 +65,7 @@ struct CreatorCommunityItemView: View {
.frame(width: 24, height: 24)
Text("\(item.likeCount)")
.font(.custom(Font.preRegular.rawValue, size: 18))
.appFont(size: 18, weight: .regular)
.foregroundColor(Color(hex: "78909C"))
}
@@ -75,7 +75,7 @@ struct CreatorCommunityItemView: View {
.frame(width: 24, height: 24)
Text("\(item.commentCount)")
.font(.custom(Font.preRegular.rawValue, size: 18))
.appFont(size: 18, weight: .regular)
.foregroundColor(Color(hex: "78909C"))
}
}

View File

@@ -81,15 +81,15 @@ struct UserProfileContentView: View {
HStack(spacing: 4) {
Text("\(ownedContentCount)")
.font(.custom(Font.preRegular.rawValue, size: 16))
.appFont(size: 16, weight: .regular)
.foregroundColor(Color(hex: "#FDD453"))
Text("/")
.font(.custom(Font.preRegular.rawValue, size: 16))
.appFont(size: 16, weight: .regular)
.foregroundColor(.white)
Text("\(totalContentCount)")
.font(.custom(Font.preRegular.rawValue, size: 16))
.appFont(size: 16, weight: .regular)
.foregroundColor(.white)
}
}

View File

@@ -44,29 +44,29 @@ struct UserProfileLiveView: View {
VStack(alignment: .leading, spacing: 8) {
Text(item.managerNickname)
.font(.custom(Font.preRegular.rawValue, size: 18))
.appFont(size: 18, weight: .regular)
.foregroundColor(.white)
.lineLimit(1)
.truncationMode(.tail)
Text(item.title)
.font(.custom(Font.preRegular.rawValue, size: 14))
.appFont(size: 14, weight: .regular)
.foregroundColor(Color(hex: "B0BEC5"))
.lineLimit(1)
.truncationMode(.tail)
HStack(spacing: 4) {
Text("\(dateDic["dayOfWeek"] ?? "")")
.font(.custom(Font.preRegular.rawValue, size: 14))
.appFont(size: 14, weight: .regular)
.foregroundColor(Color(hex: "78909C"))
Text("|")
.font(.custom(Font.preRegular.rawValue, size: 14))
.appFont(size: 14, weight: .regular)
.foregroundColor(Color(hex: "78909C"))
let time = dateDic["time"] ?? ""
Text("\(item.isActive && !item.channelName.isNullOrBlank() ? "On Air" : time)")
.font(.custom(Font.preRegular.rawValue, size: 14))
.appFont(size: 14, weight: .regular)
.foregroundColor(Color(hex: "98A2F6"))
}
}
@@ -117,7 +117,7 @@ struct UserProfileLiveView: View {
.frame(width: 12)
Text("\(item.price)")
.font(.custom(Font.preRegular.rawValue, size: 12))
.appFont(size: 12, weight: .regular)
.foregroundColor(.white)
}
.padding(4)
@@ -126,7 +126,7 @@ struct UserProfileLiveView: View {
.cornerRadius(4)
} else {
Text("무료")
.font(.custom(Font.preRegular.rawValue, size: 14))
.appFont(size: 14, weight: .regular)
.foregroundColor(Color(hex: "#263238"))
.padding(4)
.frame(maxWidth: .infinity)