willhains / Kotoba

Quickly search the built-in iOS dictionary to see definitions of words. Collect words you want to remember.
MIT License
547 stars 59 forks source link

Bigger search bar #2

Closed willhains closed 9 years ago

willhains commented 9 years ago

@gruber

can we make the search bar and text bigger? More like 20pt or 24pt or something instead of 16? Why not since it’s the only input? I tried poking around the storyboard in Xcode but don’t see any way to change that there.

willhains commented 9 years ago

Fixed in eb5ee932a8434a0d6af5ace19d8022892e978e4e

willhains commented 9 years ago

@gruber:

http://stackoverflow.com/questions/19161652/change-the-font-size-and-font-style-of-uisearchbar-ios-7

I tried this, but couldn't get it to work. Also, it requires a Swift–ObjC bridge, which would have been more lines of code than the solution I ended up using. It's somewhat hacky, but has the same chance of breaking as the appearance proxy approach, in as much as they both depend on UISearchBar containing a UITextField subclass.

I hope that in the future, iOS exposes more ways to customise UISearchBar. For now, this works.