SHSearchBar
SHSearchBar copied to clipboard
Hide the UITextField inside the SHSearchBar
It is important to hide the text field behind a public API. This enables to switch technologies behind the SHSearchBar without affecting users of the framework.
Here it is important to offer all the functionality in the public API like the normal UISearchBar does plus advantages a UITextField has. These are:
UITextField Features
-
[set/get] defaultTextAttributes
-
[set/get] typingAttributes (the above 2 are better than setting the attributedText directly since we are able to access the attributes and thus are more flexible)
-
[set/get] attributedPlaceholder
-
[set/get] leftView
-
[set/get] rightView
-
[set/get] tintColor (directly maps to the cursor color)
-
[set/get] text
-
[set/get] isEnabled
-
[call] resignFirstResponder()
SHSearchBar Features
- [set/get] cancelButtonTextAttributes
His, Can you assign me this issue ?
With pleasure :)
But wait… Here I'm not sure if I actually want this, which is the reason why I did not add the label help-wanted
you unassigned me ? this issue not part of the #hacktoberfest ?
I added help wanted
label to many tickets of my projects. For them I would accept PRs. See here:
- https://github.com/Blackjacx/SHSearchBar/issues
- https://github.com/Blackjacx/backlog-notifier/issues
- https://github.com/Blackjacx/columbus/issues
- https://github.com/Blackjacx/assist/issues
- https://github.com/Blackjacx/asckit/issues