From 670c4ebca5dec11adb218e2c82290d07c83d5ea7 Mon Sep 17 00:00:00 2001 From: Stefan Herold Date: Thu, 13 Dec 2018 22:25:49 +0100 Subject: [PATCH] Extend Example By Removing Navbar Shadow Image --- Example/SHSearchBar/ViewController.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Example/SHSearchBar/ViewController.swift b/Example/SHSearchBar/ViewController.swift index 42ece84..cf95b34 100644 --- a/Example/SHSearchBar/ViewController.swift +++ b/Example/SHSearchBar/ViewController.swift @@ -92,6 +92,9 @@ class ViewController: UIViewController, SHSearchBarDelegate { view.backgroundColor = UIColor.white + // Hides the line of the bottom of the navigation bar + navigationController?.navigationBar.shadowImage = UIImage() + let leftView1 = imageViewWithIcon(searchGlassIconTemplate, rasterSize: rasterSize) searchBar1 = defaultSearchBar(withRasterSize: rasterSize, leftView: leftView1, rightView: nil, delegate: self) view.addSubview(searchBar1)