Skip to content

Instantly share code, notes, and snippets.

@Oni-zerone
Created December 11, 2018 09:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Oni-zerone/359a9d2095c86cea53d2964b776a43c6 to your computer and use it in GitHub Desktop.
Save Oni-zerone/359a9d2095c86cea53d2964b776a43c6 to your computer and use it in GitHub Desktop.
ExampleBuilder
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