Skip to content

Instantly share code, notes, and snippets.

@milanstevanovic
Last active September 28, 2018 14:17
Show Gist options
  • Select an option

  • Save milanstevanovic/eefa9c29b8c0af888447867cbc1038e6 to your computer and use it in GitHub Desktop.

Select an option

Save milanstevanovic/eefa9c29b8c0af888447867cbc1038e6 to your computer and use it in GitHub Desktop.
class SearchViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
self.makeViewTestable()
}
}
extension SearchViewController: UITestablePage {
typealias UIElementType = UIElements.Pages.SearchPage
func makeViewTestable() {
    self.makeViewTestable(self.view, using: .root)
    self.makeViewTestable(self.searchButton, using: .startSearchButton)
    self.makeViewTestable(self.tableView, using: .tableView)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment