Created
April 27, 2018 16:16
Flint conditional conformance blog part 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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