Skip to content

Instantly share code, notes, and snippets.

@wh1pch81n
Created February 12, 2017 16:20
Show Gist options
  • Select an option

  • Save wh1pch81n/8c6fd804deda9b5636879a6ba924a8ba to your computer and use it in GitHub Desktop.

Select an option

Save wh1pch81n/8c6fd804deda9b5636879a6ba924a8ba to your computer and use it in GitHub Desktop.
class ViewController: UIViewController {
var customizerObject: SpecialProtocol<ViewController>?
override func viewDidLoad() {
super.viewDidLoad()
specialMethod()
}
func specialMethod() {
// default
if let c = customizerObject {
c.specialMethod(self)
return
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment