SHSearchBar icon indicating copy to clipboard operation
SHSearchBar copied to clipboard

Hide the UITextField inside the SHSearchBar

Open Blackjacx opened this issue 8 years ago • 5 comments

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

Blackjacx avatar Nov 25 '16 18:11 Blackjacx

His, Can you assign me this issue ?

narendrajagne avatar Oct 04 '23 10:10 narendrajagne

With pleasure :)

Blackjacx avatar Oct 04 '23 11:10 Blackjacx

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

Blackjacx avatar Oct 04 '23 11:10 Blackjacx

you unassigned me ? this issue not part of the #hacktoberfest ?

narendrajagne avatar Oct 04 '23 11:10 narendrajagne

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

Blackjacx avatar Oct 04 '23 11:10 Blackjacx