@@ -35,50 +35,50 @@ extension UIFont {
35
35
36
36
// MARK: - Private Methods
37
37
38
- private class func tvFontOfSize ( _ fontSize: CGFloat ) -> UIFont {
38
+ private class func tvFont ( ofSize fontSize: CGFloat ) -> UIFont {
39
39
return UIFont ( name: FontFamily . PingFangTCRegular, size: fontSize) ?? UIFont . systemFont ( ofSize: fontSize)
40
40
}
41
41
42
- private class func tvBoldFontOfSize ( _ fontSize: CGFloat ) -> UIFont {
42
+ private class func tvBoldFont ( ofSize fontSize: CGFloat ) -> UIFont {
43
43
return UIFont ( name: FontFamily . PingFangTCMedium, size: fontSize) ?? UIFont . boldSystemFont ( ofSize: fontSize)
44
44
}
45
45
46
46
// MARK: - Public Methods
47
47
48
48
class func tvFontForTagline( ) -> UIFont {
49
- return UIFont . tvFontOfSize ( 44 )
49
+ return UIFont . tvFont ( ofSize : 44 )
50
50
}
51
51
52
52
class func tvFontForCategoryCell( ) -> UIFont {
53
- return UIFont . tvFontOfSize ( 35 )
53
+ return UIFont . tvFont ( ofSize : 35 )
54
54
}
55
55
56
56
class func tvFontForFocusedCategoryCell( ) -> UIFont {
57
- return UIFont . tvFontOfSize ( 40 )
57
+ return UIFont . tvFont ( ofSize : 40 )
58
58
}
59
59
60
60
class func tvFontForVideoCell( ) -> UIFont {
61
- return UIFont . tvFontOfSize ( 29 )
61
+ return UIFont . tvFont ( ofSize : 29 )
62
62
}
63
63
64
64
class func tvFontForFocusedVideoCell( ) -> UIFont {
65
- return UIFont . tvBoldFontOfSize ( 29 )
65
+ return UIFont . tvBoldFont ( ofSize : 29 )
66
66
}
67
67
68
68
class func tvFontForVideoLength( ) -> UIFont {
69
69
return UIFont . systemFont ( ofSize: 20 )
70
70
}
71
71
72
72
class func tvFontForLogo( ) -> UIFont {
73
- return UIFont . tvFontOfSize ( 65 )
73
+ return UIFont . tvFont ( ofSize : 65 )
74
74
}
75
75
76
76
class func tvFontForMenuButton( ) -> UIFont {
77
- return UIFont . tvFontOfSize ( 30 )
77
+ return UIFont . tvFont ( ofSize : 30 )
78
78
}
79
79
80
80
class func tvFontForHeaderTitle( ) -> UIFont {
81
- return UIFont . tvFontOfSize ( 35 )
81
+ return UIFont . tvFont ( ofSize : 35 )
82
82
}
83
83
84
84
}
0 commit comments