{"id":16948638,"url":"https://github.com/timoliver/tosearchbar","last_synced_at":"2025-03-17T08:37:04.457Z","repository":{"id":56923091,"uuid":"69199485","full_name":"TimOliver/TOSearchBar","owner":"TimOliver","description":"A basic reimplementation of UISearchBar with easier theming, and nicer animation.","archived":false,"fork":false,"pushed_at":"2019-10-17T16:55:20.000Z","size":176,"stargazers_count":105,"open_issues_count":1,"forks_count":8,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-27T21:24:58.324Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TimOliver.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"timoliver","custom":"https://tim.dev/paypal"}},"created_at":"2016-09-26T00:41:07.000Z","updated_at":"2024-02-03T16:52:15.000Z","dependencies_parsed_at":"2022-08-21T05:20:18.777Z","dependency_job_id":null,"html_url":"https://github.com/TimOliver/TOSearchBar","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimOliver%2FTOSearchBar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimOliver%2FTOSearchBar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimOliver%2FTOSearchBar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimOliver%2FTOSearchBar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TimOliver","download_url":"https://codeload.github.com/TimOliver/TOSearchBar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243852484,"owners_count":20358271,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T21:51:45.292Z","updated_at":"2025-03-17T08:37:04.134Z","avatar_url":"https://github.com/TimOliver.png","language":"Objective-C","funding_links":["https://github.com/sponsors/timoliver","https://tim.dev/paypal","https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=M4RKULAVKV7K8"],"categories":[],"sub_categories":[],"readme":"![TOSearchBar](screenshot.jpg)\n\n[![CI Status](http://img.shields.io/travis/TimOliver/TOSearchBar.svg?style=flat)](http://api.travis-ci.org/TimOliver/TOSearchBar.svg)\n[![CocoaPods](https://img.shields.io/cocoapods/dt/TOSearchBar.svg?maxAge=3600)](https://cocoapods.org/pods/TOSearchBar)\n[![Version](https://img.shields.io/cocoapods/v/TOSearchBar.svg?style=flat)](http://cocoadocs.org/docsets/TOSearchBar)\n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/TimOliver/TOSearchBar/master/LICENSE)\n[![Platform](https://img.shields.io/cocoapods/p/TOSearchBar.svg?style=flat)](http://cocoadocs.org/docsets/TOSearchBar)\n[![Beerpay](https://beerpay.io/TimOliver/TOSearchBar/badge.svg?style=flat)](https://beerpay.io/TimOliver/TOSearchBar)\n[![PayPal](https://img.shields.io/badge/paypal-donate-blue.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=M4RKULAVKV7K8)\n\n# TOSearchBar\n\n`TOSearchBar` is a basic re-implementation of [`UISearchBar`](https://developer.apple.com/reference/uikit/uisearchbar), Apple's UI control for performing simple text-based searches. Unlike `UISearchBar`, `TOSearchBar` has been designed to be much more easily themed, as well as provide smoother, more native feeling animations.\n\n# Features\n\n* A very simple and intuitive API.\n* iOS 7 style spring animations when entering and leaving focus.\n* Uses `IBDesignable` to be fully visible/configurable in Interface Builder.\n* Provides default themes for both light and dark modes.\n* Every internal UI element is exposed for custom theming.\n* An extensive delegate object for dynamically controlling its behavior.\n* Dynamic images generated at runtime, and recycled amongst all instances.\n\n# Installation\n\n`TOSearchBar` will work with iOS 7 and above. While written in Objective-C, it should easily import into Swift as well.\n\n## Manual Installation\n\nCopy the contents of the `TOSearchBar` folder to your app project.\n\n## CocoaPods\n\n```\npod 'TOSearchBar'\n```\n\n## Carthage\n\nFeel free to file a PR. :)\n\n# Why build this?\n\nI'm building a [comic reader app](http://icomics.co) that uses a dark theme for a lot of its UI. While I tried very hard to make it work, I ultimately became very frustrated by `UISearchBar`'s lack of customizability. It's not possible to change the color of its elements without a lot of hacking, and some of its animations are downright broken. A [colleague reasoned that it's the most broken UI control in iOS](https://twitter.com/icanzilb/status/785411489712726016) and I'm pretty sure he's right!\n\nAs a result, I decided to build this control. It's not as fully featured as `UISearchBar`, but I'm sure we can add additional functionality to it as needed. :)\n\n# Credits\n\n`TOSearchBar` was created by [Tim Oliver](http://twitter.com/TimOliverAU) as a component of [iComics](http://icomics.co).\n\niPhone 7 Plus device mockup by [Pixeden](http://www.pixeden.com).\n\n# License\n\n`TOSearchBar` is available under the MIT license. Please see the [LICENSE](LICENSE) file for more information. ![analytics](https://ga-beacon.appspot.com/UA-5643664-16/TOSearchBar/README.md?pixel)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimoliver%2Ftosearchbar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimoliver%2Ftosearchbar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimoliver%2Ftosearchbar/lists"}