-
Notifications
You must be signed in to change notification settings - Fork 38
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should (manually) test at some point that paths are correct and fonts are registered properly by using an actual dummy project that would include some Project/FooBrand/Resources/UI/Fonts
folder, added as a folder reference, and itself containing subfolders like DarkTheme/Article/MyFont.ttf
and look at the bundle structure and what we got once compiled.
Documentation/fonts/swift2.md
Outdated
@@ -19,6 +19,7 @@ You can customize some elements of this template by overriding the following par | |||
| Parameter Name | Default Value | Description | | |||
| -------------- | ------------- | ----------- | | |||
| `enumName` | `FontFamily` | Allows you to change the name of the generated `enum` containing all font families. | | |||
| `preservePath` | N/A | Setting this parameter will disable the basename filter applied to all font paths. Use this if you are adding fonts to your target in a specific folder, and need to preserve those folder names when registering fonts. The path will be relative to the folder you provided to SwiftGen. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use this if you added your font folder as a "folder reference" in your Xcode project, making that folder hierarchy preserved once copied in the build app bundle
Documentation/fonts/swift3.md
Outdated
@@ -18,6 +18,7 @@ You can customize some elements of this template by overriding the following par | |||
| Parameter Name | Default Value | Description | | |||
| -------------- | ------------- | ----------- | | |||
| `enumName` | `FontFamily` | Allows you to change the name of the generated `enum` containing all font families. | | |||
| `preservePath` | N/A | Setting this parameter will disable the basename filter applied to all font paths. Use this if you are adding fonts to your target in a specific folder, and need to preserve those folder names when registering fonts. The path will be relative to the folder you provided to SwiftGen. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto
Documentation/fonts/swift4.md
Outdated
@@ -18,6 +18,7 @@ You can customize some elements of this template by overriding the following par | |||
| Parameter Name | Default Value | Description | | |||
| -------------- | ------------- | ----------- | | |||
| `enumName` | `FontFamily` | Allows you to change the name of the generated `enum` containing all font families. | | |||
| `preservePath` | N/A | Setting this parameter will disable the basename filter applied to all font paths. Use this if you are adding fonts to your target in a specific folder, and need to preserve those folder names when registering fonts. The path will be relative to the folder you provided to SwiftGen. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto
a086a7f
to
558dab6
Compare
@@ -19,6 +19,7 @@ You can customize some elements of this template by overriding the following par | |||
| Parameter Name | Default Value | Description | | |||
| -------------- | ------------- | ----------- | | |||
| `enumName` | `FontFamily` | Allows you to change the name of the generated `enum` containing all font families. | | |||
| `preservePath` | N/A | Setting this parameter will disable the basename filter applied to all font paths. Use this if you added your font folder as a "folder reference" in your Xcode project, making that folder hierarchy preserved once copied in the build app bundle. The path will be relative to the folder you provided to SwiftGen. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👌
558dab6
to
1439a37
Compare
Fixes SwiftGen/SwiftGen#324.
SwiftGenKit related PR: SwiftGen/SwiftGenKit#52
StencilSwiftKit related PR: SwiftGen/StencilSwiftKit#60