Skip to content

Commit

Permalink
setting/#123 텍스트 스타일 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaybei committed Jul 5, 2024
1 parent 4530511 commit 916873f
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions KkuMulKum/Resource/Extension/UIFont+.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,31 @@ extension UIFont {
}

enum Pretendard {
case title01, title02
case title00, title01, title02
case head01, head02
case body01, body02, body03, body04, body05, body06
case caption01, caption02
case label01, label02
case label00, label01, label02

var weight: String {
switch self {
case .title01, .head01, .body01, .body03, .body05, .caption01, .label01: "Pretendard-SemiBold"
case .title02, .head02, .body02, .body04, .body06, .caption02, .label02: "Pretendard-Regular"
case .title00:
"Pretendard-Bold"
case .title01, .head01, .body01, .body03, .body05, .caption01, .label01:
"Pretendard-SemiBold"
case .title02, .head02, .body02, .body04, .body06, .caption02, .label00, .label02:
"Pretendard-Regular"
}
}

var size: CGFloat {
switch self {
case .title01, .title02: 24
case .title00, .title01, .title02: 24
case .head01, .head02: 22
case .body01, .body02: 18
case .body03, .body04: 16
case .body05, .body06: 14
case .caption01, .caption02: 12
case .caption01, .caption02, .label00: 12
case .label01, .label02: 10
}
}
Expand Down

0 comments on commit 916873f

Please sign in to comment.