Skip to content

Commit 3e15ce6

Browse files
authored
chore: show description for events and properties in multiline (#141)
1 parent dc6545e commit 3e15ce6

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/generators/swift/templates/analytics.swift.hbs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ class RudderTyperAnalytics {
2020
{{/each}}
2121

2222
{{#each tracks}}
23-
{{#if description}}
24-
/// {{description}}
23+
{{#if functionDescription}}
24+
/**
25+
* {{functionDescription}}
26+
*/
2527
{{/if}}
2628
static func {{functionSignature functionName properties false}} {
2729
{{functionCall "RudderTyperAnalytics" functionName properties "options" "RSOption()"}}

src/generators/swift/templates/class.swift.hbs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ class {{name}}: RudderTyperSerializable {
1515
{{/if}}
1616

1717
{{#if description}}
18-
/// {{description}}
18+
/**
19+
* {{description}}
20+
*/
1921
{{/if}}
2022
var {{name}}: {{#if hasEnum}}{{enumName}}{{else}}{{type}}{{/if}}{{#isVariableNullable}}?{{/isVariableNullable}}
2123
{{/each}}

0 commit comments

Comments
 (0)