Skip to content
Snippets Groups Projects

Update Bindings

Merged Dariusz Rybicki requested to merge feature/update-bindings into development
1 file
+ 6
3
Compare changes
  • Side-by-side
  • Inline
@@ -2,16 +2,19 @@ import Bindings
import XCTestDynamicOverlay
public struct CmixMakeReceptionIdentity {
public var run: () throws -> Data
public var run: () throws -> ReceptionIdentity
public func callAsFunction() throws -> Data {
public func callAsFunction() throws -> ReceptionIdentity {
try run()
}
}
extension CmixMakeReceptionIdentity {
public static func live(_ bindingsCmix: BindingsCmix) -> CmixMakeReceptionIdentity {
CmixMakeReceptionIdentity(run: bindingsCmix.makeReceptionIdentity)
CmixMakeReceptionIdentity {
let data = try bindingsCmix.makeReceptionIdentity()
return try ReceptionIdentity.decode(data)
}
}
}
Loading