Skip to content

Instantly share code, notes, and snippets.

@eofster
Created December 15, 2015 13:17
Show Gist options
  • Save eofster/1b4a1951a04e40221c24 to your computer and use it in GitHub Desktop.
Save eofster/1b4a1951a04e40221c24 to your computer and use it in GitHub Desktop.
GPS tracker presenter factory
protocol PresenterFactory {
func createTrackSummaryPresenterWithOutput(output: TrackSummaryPresenterOutput) -> TrackSummaryPresenter
}
class PresenterFactoryImpl {}
extension PresenterFactoryImpl: PresenterFactory {
func createTrackSummaryPresenterWithOutput(output: TrackSummaryPresenterOutput) -> TrackSummaryPresenter {
return TrackSummaryPresenter(output: output)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment