I am trying to set the background color of a UISearchController in Swift 5.
I have tried methods mentioned in other threads but I believe they are outdated.
searchController.barTintColor = UIColor.redColor()
Error Message: Value of type 'UISearchController' has no member 'barTintColor'