Can't hide the top and bottom lines in custom searchBar – Ios swift
I´ve tried to change background color inside class SearchBarView: UIView {}: searchBar.searchTextField.backgroundColor = .clear searchBar.backgroundColor = .clear and tryed something like that inside MainViewController: searchBar.searchTextField.backgroundColor = .clear searchBar.backgroundColor = .clear searchBar.layer.backgroundColor = UIColor.clear.cgColor but, unfortunately I still see this lines…