Skip to content

Commit

Permalink
#171: Tag configuration height31 케이스 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-muuu committed Feb 15, 2023
1 parent 4f2fff6 commit bed45ca
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Zatch/Global/Source/Component/Tag/TagStlye.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ extension ZatchComponent.Tag{
enum TagType{
case height20
case height25
case height31
}
}

Expand Down Expand Up @@ -79,23 +80,23 @@ extension ZatchComponent.Tag.TagType{
switch self{
case .height20: return ZatchComponent.Padding(left: 8, right: 8, top: 0, bottom: 0)
case .height25: return ZatchComponent.Padding(left: 12, right: 12, top: 2, bottom: 2)
default: return ZatchComponent.Padding(left: 0, right: 0, top: 0, bottom: 0)
case .height31: return ZatchComponent.Padding(left: 12, right: 12, top: 6, bottom: 6)
}
}

var font: TypoStyle{
switch self{
case .height20: return .medium12
case .height25: return .medium15_21
default: return .medium12
case .height31: return .medium16
}
}

var height: CGFloat{
switch self{
case .height20: return 20
case .height25: return 25
default: return 20
case .height31: return 31
}
}
}

0 comments on commit bed45ca

Please sign in to comment.