Created
May 14, 2018 11:38
-
-
Save rajajawahar/bbd729b423fd5b31e7053365610c7448 to your computer and use it in GitHub Desktop.
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
import UIKit | |
protocol BasePresenter { | |
// Protocol does not support generics, so we have added associated type, | |
// Anything that conforms to BasePresenter | |
associatedtype View | |
func attachView(view : View) | |
func detachView() | |
func destroy() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment