//HomePageViewController.swift
class HomePageViewController: UIViewController {
//Connection from an Interface Builder to a UI component
@IBOutlet private weak var searchSongSearchBar: UISearchBar!
override func viewDidLoad() {
extension HomePageViewController {
private func setupViews() {
searchSongSearchBar.layer.cornerRadius = 10
searchSongSearchBar.layer.masksToBounds = true
searchSongSearchBar.setBackgroundImage(UIImage(), for: .any, barMetrics: .default)
searchSongSearchBar.placeholder = NSLocalizedString("search", comment: "")
if let placeholderInsidesearchSongSearchBar = searchSongSearchBar.value(forKey: "searchField") as? UITextField {
placeholderInsidesearchSongSearchBar.textColor = UIColor.flint
placeholderInsidesearchSongSearchBar.font = UIFont.textStyle
placeholderInsidesearchSongSearchBar.textAlignment = .left