@@ -53,7 +53,7 @@ final public class XcodeTypographyExporter: XcodeExporterBase {
53
53
" fontName " : $0. fontName,
54
54
" fontSize " : $0. fontSize,
55
55
" supportsDynamicType " : $0. fontStyle != nil ,
56
- " type " : $0. fontStyle? . textStyleName ?? " "
56
+ " type " : $0. fontStyle? . uiKitStyleName ?? " "
57
57
]
58
58
}
59
59
let env = makeEnvironment ( templatesPath: output. templatesPath)
@@ -71,7 +71,7 @@ final public class XcodeTypographyExporter: XcodeExporterBase {
71
71
" fontName " : $0. fontName,
72
72
" fontSize " : $0. fontSize,
73
73
" supportsDynamicType " : $0. fontStyle != nil ,
74
- " type " : $0. fontStyle? . textStyleName ?? " "
74
+ " type " : $0. fontStyle? . swiftUIStyleName ?? " "
75
75
]
76
76
}
77
77
let env = makeEnvironment ( templatesPath: output. templatesPath)
@@ -83,7 +83,7 @@ final public class XcodeTypographyExporter: XcodeExporterBase {
83
83
84
84
private func makeLabelStyleExtensionFileContents( textStyles: [ TextStyle ] , labelStyleExtensionURL: URL ) throws -> FileContents {
85
85
let dict = textStyles. map { style -> [ String : Any ] in
86
- let type : String = style. fontStyle? . textStyleName ?? " "
86
+ let type : String = style. fontStyle? . uiKitStyleName ?? " "
87
87
return [
88
88
" className " : style. name. first!. uppercased ( ) + style. name. dropFirst ( ) ,
89
89
" varName " : style. name,
@@ -103,7 +103,7 @@ final public class XcodeTypographyExporter: XcodeExporterBase {
103
103
104
104
private func makeLabel( textStyles: [ TextStyle ] , labelsDirectory: URL , separateStyles: Bool ) throws -> FileContents {
105
105
let dict = textStyles. map { style -> [ String : Any ] in
106
- let type : String = style. fontStyle? . textStyleName ?? " "
106
+ let type : String = style. fontStyle? . uiKitStyleName ?? " "
107
107
return [
108
108
" className " : style. name. first!. uppercased ( ) + style. name. dropFirst ( ) ,
109
109
" varName " : style. name,
0 commit comments