Skip to content

Commit

Permalink
apply Sendable unless it's class and mutable. (#2473)
Browse files Browse the repository at this point in the history
Co-authored-by: David Siegel <[email protected]>
  • Loading branch information
nh7a and dvdsgl authored Feb 14, 2024
1 parent 63bbff0 commit 78a5b7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/quicktype-core/src/language/Swift.ts
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ export class SwiftRenderer extends ConvenienceRenderer {
protocols.push("Equatable");
}

if (this._options.sendable && !this._options.mutableProperties && !this._options.objcSupport) {
if (this._options.sendable && (!this._options.mutableProperties || !isClass) && !this._options.objcSupport) {
protocols.push("Sendable");
}

Expand Down

0 comments on commit 78a5b7e

Please sign in to comment.