Add a polished search screen to your iOS app that shows trending topics and remembers past searches automatically.
Let users see popular search terms before they start typing, using colorful tags or button styles that match your app design.
Quickly wire up a search interface with history tracking without building it from scratch.
Control how many past searches are saved and where they are stored to fit your app's data policies.
Add via CocoaPods or drag source files into Xcode. Requires iOS 7+ and Xcode 7+. A working search screen needs only a few lines of setup code.
PYSearch is a library for iOS apps that adds a ready-made search screen with common search UI patterns. It handles the parts of search that most iOS apps need: showing trending or popular terms, remembering what the user has searched before, and offering suggestions as the user types. The README states the library is used in over 3,000 apps with more than 60,000 downloads through CocoaPods. The hot search area shows a list of popular or suggested terms before the user starts typing. You can choose from several visual styles for this section, from simple tags to colorful labeled buttons. The search history area works similarly, recording recent searches and displaying them in one of several layouts. Both areas are customizable to fit the look of your app. Adding the library takes only a few lines of code. You create a list of popular search terms, initialize the search view controller with that list and a placeholder text for the search bar, then present it on screen. When the user completes a search, a callback gives you the search text so your app can decide what to show next. More advanced configuration lets you control where search results appear, whether embedded within the search screen or displayed separately. You can hide search suggestions entirely, cap how many history items are saved (the default is 20), and store the search history at a custom file path. The data source and delegate patterns the library uses follow standard iOS conventions. The project requires iOS 7 or later and Xcode 7 or later. It is available via CocoaPods or by dragging the source files into an Xcode project manually. The source code is released under the MIT License.
← ko1o on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.