In our project we have 3 files:
struct MyModel: Equatable, Sendable { ... }
protocol MyProtocol: Sendable { ... }
extension MyModel: MyProtocol { ... }
using the redundantSendable the Sendable gets stripped from struct MyModel which results in a compilation error in the extension file:
Conformance to 'Sendable' must occur in the same source file as struct 'MyModel'; use '@unchecked Sendable' for retroactive conformance
We have had to disable this rule for now due to the compilation error..
In our project we have 3 files:
using the
redundantSendabletheSendablegets stripped fromstruct MyModelwhich results in a compilation error in the extension file:We have had to disable this rule for now due to the compilation error..