Skip to content

Commit 7086664

Browse files
Document moduleName option (Swift SDK) (#720)
Co-authored-by: fern-api[bot] <115122769+fern-api[bot]@users.noreply.github.com> Co-authored-by: Devin Logan <[email protected]>
1 parent 3d52ac1 commit 7086664

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

fern/products/sdks/overview/swift/configuration.mdx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Configuration options for the Fern Swift SDK.
55

66
You can customize the behavior of the Swift SDK generator in `generators.yml`:
77

8-
```yaml {6-8} title="generators.yml"
8+
```yaml {6-9} title="generators.yml"
99
groups:
1010
swift-sdk:
1111
generators:
@@ -14,6 +14,7 @@ groups:
1414
config:
1515
clientClassName: YourClientName
1616
environmentEnumName: YourCustomEnvironment
17+
moduleName: MyCustomModule
1718
```
1819
1920
## SDK Configuration Options
@@ -24,4 +25,8 @@ The name of the generated client class. This allows you to customize the class n
2425
2526
<ParamField path="environmentEnumName" type="string" required={false} toc={true}>
2627
The name of the generated environment enum. This allows you to customize the enum name that defines your API environments (such as production, staging, development) and ensures consistent naming across SDK generations.
27-
</ParamField>
28+
</ParamField>
29+
30+
<ParamField path="moduleName" type="string" required={false} toc={true}>
31+
The module name used in client code (e.g., `import MyCustomModule`). When provided, this name is used consistently across the library, product, and target.
32+
</ParamField>

0 commit comments

Comments
 (0)