Created
December 11, 2018 09:14
-
-
Save Oni-zerone/359a9d2095c86cea53d2964b776a43c6 to your computer and use it in GitHub Desktop.
ExampleBuilder
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
open class ExampleBuilder<Context>: Builder<Context> { | |
var title: String | |
public init(title: String) { | |
self.title = title | |
super.init() | |
} | |
open override func build(_ context: Context) -> UIViewController? { | |
let controller = UIViewController() | |
controller.title = self.title | |
return controller | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment