Skip to content
Snippets Groups Projects
Commit dda2134c authored by Dariusz Rybicki's avatar Dariusz Rybicki
Browse files

Add DependenciesProvider

parent 1208ddac
No related branches found
No related tags found
1 merge request!2Bindings API wrapper
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment