Skip to content

Commit c26afc9

Browse files
committed
[#250] SwiftUITypoStyle로 변경
1 parent 49bb022 commit c26afc9

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Diff for: YDS-Storybook/SwiftUI/Atom/BottomSheetPageView.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ struct BottomSheetPageView: View {
6666
content: {
6767
VStack(alignment: .leading) {
6868
ForEach(teams, id: \.self) { team in
69-
YDSLabel(text: team, typoStyle: .title1)
69+
YDSLabel(text: team, font: String.SwiftUITypoStyle.title1.font)
7070
}
7171
}
7272
.frame(maxWidth: .infinity)

Diff for: YDS-Storybook/SwiftUI/Atom/LabelPageView.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import YDS_SwiftUI
2020
@State var isAllowsTightening: Bool = false
2121

2222
var selectedTypoStyle: Font {
23-
return Font(String.TypoStyle.allCases[typoStyleSelectedIndex].font)
23+
return String.SwiftUITypoStyle.allCases[typoStyleSelectedIndex].font
2424
}
2525
var selectedColor: Color {
2626
return YDSSwiftUIColorWrapper.textColors.items[textColorSelectedIndex].color
@@ -52,7 +52,7 @@ import YDS_SwiftUI
5252
text: $text),
5353
Option.enum(
5454
description: "style",
55-
cases: String.TypoStyle.allCases,
55+
cases: String.SwiftUITypoStyle.allCases,
5656
selectedIndex: $typoStyleSelectedIndex),
5757
Option.optionalInt(
5858
description: "lineLimit",

Diff for: YDS-SwiftUI/Source/Foundation/YDSTypoStyle.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ extension String {
104104
}
105105
}
106106

107-
public static var allCases: [String.TypoStyle] = [.display1, .display2,
107+
public static var allCases: [SwiftUITypoStyle] = [.display1, .display2,
108108
.title1, .title2, .title3,
109109
.subtitle1, .subtitle2, .subtitle3,
110110
.body1, .body2,

0 commit comments

Comments
 (0)