I have created a UISearchController: let mySearchController = UISearchController(searchResultsController: nil)
and a segmented control:
var mySegmentedControl: UISegmentedControl {
let items = ["One", "Two", "Three"]
let segmentedControl = UISegmentedControl(items: items)
return segmentedControl
}
How would I have BOTH of these be my UITableViewController header? I tried putting them both into a UIView, and making the UIView the header, but the search bar was not functional when doing it this way.
How should this be done?