This looks ugly. I want to implement the new search controller for IOS 11 in the navigationItem.searchContoller space, however there is a large gap at the bottom. How do I get rid of this ugly gap?
Asked
Active
Viewed 320 times
3
-
Maybe this can help [link](https://stackoverflow.com/questions/32429397/xcode-how-to-add-margin-padding-to-label-text) – razp26 Sep 26 '17 at 00:06
-
No this didn't help :( – Joshua Hart Sep 26 '17 at 17:00
-
Did you find a solution except for using titleView instead of searchController? – x0 z1 Aug 29 '18 at 09:06
1 Answers
0
try this
searchController.searchBar.searchFieldBackgroundPositionAdjustment = UIOffset(horizontal: 0, vertical: 8)

Kastor
- 478
- 5
- 12