Instantly share code, notes, and snippets.

Embed
What would you like to do?
Flint conditional conformance blog part 5
extension StaticActionBinding where ActionType.PresenterType == NoPresenter {
public func perform(with input: ActionType.InputType,
completion: ((ActionOutcome) -> ())? = nil) {
}
}
extension StaticActionBinding where ActionType.InputType == NoInput {
public func perform(using presenter: ActionType.PresenterType,
completion: ((ActionOutcome) -> ())? = nil) {
}
}
extension StaticActionBinding where ActionType.InputType == NoInput, ActionType.PresenterType == NoPresenter {
public func perform(completion: ((ActionOutcome) -> ())? = nil) {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment