How to Integrate UISearchController in iOS apps using SwiftUI

Mark van Wijnen
7 min readSep 9, 2020

iOS 15 Update

There is now a native way to include a search bar in your SwiftUI apps.
Check out these sources:

  1. Apple Documentation
  2. Tutorial

Back in the UIKit days Apple wanted to provide developers with a simple API that would allow a standard search experience in iOS apps. They named it UISearchController. This controller takes care of the display of search results based on the interactions of the user with the…

--

--

Mark van Wijnen

macOS/iPadOS/iOS/watchOS/visionOS developer and SwiftUI enthousiast. “Stay Hungry, Stay Foolish!” — Steve Jobs