Skip to content
Snippets Groups Projects

Bindings API wrapper

Merged Dariusz Rybicki requested to merge feature/bindings-api-wrapper into main
1 file
+ 19
0
Compare changes
  • Side-by-side
  • Inline
import Bindings
public struct DependenciesProvider {
public var get: () -> String
public func callAsFunction() -> String {
get()
}
}
extension DependenciesProvider {
public static let live = DependenciesProvider(get: BindingsGetDependencies)
}
#if DEBUG
extension DependenciesProvider {
public static let failing = DependenciesProvider { fatalError("Not implemented") }
}
#endif
Loading