Skip to content

Commit

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

enum TagType{
case height20
case height25
}
}

Expand Down Expand Up @@ -77,20 +78,23 @@ extension ZatchComponent.Tag.TagType{
var padding: ZatchComponent.Padding{
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)
}
}

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

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

0 comments on commit c4f8e49

Please sign in to comment.