Closed sudhamab closed 5 years ago
Hey there, I made a new PR (https://github.com/Blackjacx/SHSearchBar/pull/46). See the descriptions. I referenced the commits that are the solution to your problems. But what I could not achieve is to resize the searchbar to more than 44pt (the height of the navbar).
Hope that helps - happy coding 👍
thanks so much Stefan, specially for the rapid integration of this solution in your example! It's perfect. Attaching a pic
I wish apple allowed to keep some space at the top.. but more relieved that I could get rid of the line and also increase the height. Looks slick. :)
Thanks again!
You can have that space on top by decreasing the height of the bar slightly. Just constrain the top anchor of the searchbar to layoutMarginGuide top of the SearchbarTitleView instead of just to the view. Then you have a good balance between height and top margin. When you ever find out how to increase the height of the navbar, please tell me 😋
ya tried that but it looks grander when its 44.. and definitely, if I find the answer to make the nav bar bigger, will let you know here. I think Airbnb must have developed a custom nav bar I did find this one link but need to try it. https://medium.com/@matschmidy/swift-custom-navigation-bar-image-for-ios-11-large-titles-8a176d9cbaed
Cool thanks man 👍
Hi Stefan,
thanks for your help and for developing and open sourcing this search bar!
I got the search bar working with a UITableView (even in swift 4.1) and it's great . I am trying to develop an airbnb style table view UI.
However, I am not able to do 2 things:
Airbnb Default View before Scrolling
Airbnb View After Scrolling
What I am able to accomplish
Pasting my code below which I incorporated from your examples.
Would be ammmmmmazing if I can make this happen!