Created
February 12, 2017 16:20
-
-
Save wh1pch81n/8c6fd804deda9b5636879a6ba924a8ba to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| 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