I am trying to add custom view on navigation bar. I am not sure how to implement it. Any help appreciate.
2 Answers
This is a example of how to add a Image instead of a Title String
func setupTitle(){
let logo = UIImage(named: "ImageFileName")
let imageView = UIImageView(image:logo)
imageView.contentMode = .scaleAspectFit
self.navigationItem.titleView = imageView
self.navigationController?.navigationBar.prefersLargeTitles = false
}
