Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Flint conditional conformance blog part 2
public struct StaticActionBinding<FeatureType, ActionType>: CustomDebugStringConvertible
where FeatureType: FeatureDefinition, ActionType: Action {
public func perform(using presenter: ActionType.PresenterType,
with input: ActionType.InputType,
completion: ((ActionOutcome) -> ())? = nil) {
}
}
let action: StaticActionBinding<SomeFeature, SomeAction> =
action.perform(using: myPresenter, with: "Hello world!")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment