@@ -53,7 +53,7 @@ final public class XcodeTypographyExporter: XcodeExporterBase {
5353 " fontName " : $0. fontName,
5454 " fontSize " : $0. fontSize,
5555 " supportsDynamicType " : $0. fontStyle != nil ,
56- " type " : $0. fontStyle? . textStyleName ?? " "
56+ " type " : $0. fontStyle? . uiKitStyleName ?? " "
5757 ]
5858 }
5959 let env = makeEnvironment ( templatesPath: output. templatesPath)
@@ -71,7 +71,7 @@ final public class XcodeTypographyExporter: XcodeExporterBase {
7171 " fontName " : $0. fontName,
7272 " fontSize " : $0. fontSize,
7373 " supportsDynamicType " : $0. fontStyle != nil ,
74- " type " : $0. fontStyle? . textStyleName ?? " "
74+ " type " : $0. fontStyle? . swiftUIStyleName ?? " "
7575 ]
7676 }
7777 let env = makeEnvironment ( templatesPath: output. templatesPath)
@@ -83,7 +83,7 @@ final public class XcodeTypographyExporter: XcodeExporterBase {
8383
8484 private func makeLabelStyleExtensionFileContents( textStyles: [ TextStyle ] , labelStyleExtensionURL: URL ) throws -> FileContents {
8585 let dict = textStyles. map { style -> [ String : Any ] in
86- let type : String = style. fontStyle? . textStyleName ?? " "
86+ let type : String = style. fontStyle? . uiKitStyleName ?? " "
8787 return [
8888 " className " : style. name. first!. uppercased ( ) + style. name. dropFirst ( ) ,
8989 " varName " : style. name,
@@ -103,7 +103,7 @@ final public class XcodeTypographyExporter: XcodeExporterBase {
103103
104104 private func makeLabel( textStyles: [ TextStyle ] , labelsDirectory: URL , separateStyles: Bool ) throws -> FileContents {
105105 let dict = textStyles. map { style -> [ String : Any ] in
106- let type : String = style. fontStyle? . textStyleName ?? " "
106+ let type : String = style. fontStyle? . uiKitStyleName ?? " "
107107 return [
108108 " className " : style. name. first!. uppercased ( ) + style. name. dropFirst ( ) ,
109109 " varName " : style. name,
0 commit comments