Last active
January 10, 2020 21:11
-
-
Save giovani-pereira-ifood/54fd0e1fca9a363d71ac676fac509bcc to your computer and use it in GitHub Desktop.
Using mirror example
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
let viewController = SceneCreator().createScene() | |
let viewControllerMirror = Mirror(reflecting: viewController) | |
let interactor = viewControllerMirror.children | |
.first { $0.label == "interactor" }?.value as? Interactor |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment