Skip to content

Commit

Permalink
[#250] SwiftUITypoStyle로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
chongin12 committed Jan 30, 2024
1 parent 49bb022 commit c26afc9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion YDS-Storybook/SwiftUI/Atom/BottomSheetPageView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ struct BottomSheetPageView: View {
content: {
VStack(alignment: .leading) {
ForEach(teams, id: \.self) { team in
YDSLabel(text: team, typoStyle: .title1)
YDSLabel(text: team, font: String.SwiftUITypoStyle.title1.font)
}
}
.frame(maxWidth: .infinity)
Expand Down
4 changes: 2 additions & 2 deletions YDS-Storybook/SwiftUI/Atom/LabelPageView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import YDS_SwiftUI
@State var isAllowsTightening: Bool = false

var selectedTypoStyle: Font {
return Font(String.TypoStyle.allCases[typoStyleSelectedIndex].font)
return String.SwiftUITypoStyle.allCases[typoStyleSelectedIndex].font
}
var selectedColor: Color {
return YDSSwiftUIColorWrapper.textColors.items[textColorSelectedIndex].color
Expand Down Expand Up @@ -52,7 +52,7 @@ import YDS_SwiftUI
text: $text),
Option.enum(
description: "style",
cases: String.TypoStyle.allCases,
cases: String.SwiftUITypoStyle.allCases,
selectedIndex: $typoStyleSelectedIndex),
Option.optionalInt(
description: "lineLimit",
Expand Down
2 changes: 1 addition & 1 deletion YDS-SwiftUI/Source/Foundation/YDSTypoStyle.swift
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ extension String {
}
}

public static var allCases: [String.TypoStyle] = [.display1, .display2,
public static var allCases: [SwiftUITypoStyle] = [.display1, .display2,
.title1, .title2, .title3,
.subtitle1, .subtitle2, .subtitle3,
.body1, .body2,
Expand Down

0 comments on commit c26afc9

Please sign in to comment.