UIAnimatedSearchBar
Description
The UIAnimatedSearchBar is similar to the standard UISearchBar but with the added animation of the search glass. I have tried to add the same functionality that UISearchBar comes with. The cancel button and the bookmark button can both be added just like UISearchBar. Additionally there is a UIAnimatedSearchBarDelegate that mirrors the same functionality that UISearchBarDelegate offers.
Example
To run the example project, clone the repo, and run pod install
from the Example directory first.
Requirements
Deployment Target: 11.0
Installation
UIAnimatedSearchBar is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'UIAnimatedSearchBar'
At the end of the podfile add this post_install to allow the @IBDesignable aspect of the UIAnimatedSearchBar to work:
# Workaround for Cocoapods v.1.5 issue #7606
post_install do |installer|
installer.pods_project.build_configurations.each do |config|
config.build_settings.delete('CODE_SIGNING_ALLOWED')
config.build_settings.delete('CODE_SIGNING_REQUIRED')
end
end
UIAnimatedSearchBar can be added with either Interface Builder or it can be done programatically.
Author
Kyle Burkholder
Email: [email protected]
Twitter: _KyleBurkholder
Follow me on Twitter. I'd love to see what other ios developers are working on.
Donations
I'm a self taught ios programmer and if you want to see more things like this feel free to buy me a cup of coffee, or two. ;)
License
UIAnimatedSearchBar is available under the MIT license. See the LICENSE file for more info.