Skip to content

Commit 2a795af

Browse files
committed
[FIX] Extension Custom Font로 변경
1 parent c627f0d commit 2a795af

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
Binary file not shown.

Legacy/Utility/Utils.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ extension UIButton {
9494
func setTitle(_ title: String, size: CGFloat, weight: UIFont.Weight, color: UIColor, when: UIControl.State = .normal) {
9595
if #available(iOS 15.0, *) {
9696
var attributedTitle = AttributedString(title)
97-
attributedTitle.font = .systemFont(ofSize: size, weight: weight)
97+
attributedTitle.font = .suit(size: size, weight: weight)
9898
attributedTitle.foregroundColor = color
9999
var configuration = self.configuration ?? .plain()
100100
configuration.attributedTitle = attributedTitle
@@ -111,7 +111,7 @@ extension UIButton {
111111
extension UILabel {
112112
func setTxtAttribute(_ title: String, size: CGFloat, weight: UIFont.Weight, txtColor: UIColor) {
113113
self.text = title
114-
self.font = UIFont.systemFont(ofSize: size, weight: weight)
114+
self.font = .suit(size: size, weight: weight)
115115
self.textColor = txtColor
116116
}
117117
}

0 commit comments

Comments
 (0)