Skip to content

Commit fe2c3ca

Browse files
committed
Add access modified to TextStyle and UILabel design system extensions
1 parent a1fee3f commit fe2c3ca

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

Modules/Sources/DesignSystem/Components/Modifiers/UILabel+DesignSystem.swift

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import UIKit
22

33
// MARK: - UIKit.UIFont: TextStyle
4-
extension TextStyle {
4+
public extension TextStyle {
55
var uiFont: UIFont {
66
switch self {
77
case .heading1:
@@ -50,13 +50,12 @@ extension TextStyle {
5050
}
5151

5252
// MARK: - SwiftUI.Text
53-
extension UILabel {
54-
func style(_ style: TextStyle) -> Self {
53+
public extension UILabel {
54+
func setStyle(_ style: TextStyle) {
5555
self.font = style.uiFont
5656
if style.case == .uppercase {
5757
self.text = self.text?.uppercased()
5858
}
59-
return self
6059
}
6160
}
6261

0 commit comments

Comments
 (0)