younatics / ynsearch Goto Github PK
View Code? Open in Web Editor NEW๐ Awesome fully customize search view like Pinterest written in Swift 5.0 + Realm support!
Home Page: https://www.cocoacontrols.com/controls/ynsearch
License: MIT License
๐ Awesome fully customize search view like Pinterest written in Swift 5.0 + Realm support!
Home Page: https://www.cocoacontrols.com/controls/ynsearch
License: MIT License
@younatics For some reason, clearing history is not working. I tried debugging it for hours and realized the button wasn't enabled if the clear history button y value was past the height of the screen. Could I send you my project and could you please take a look at it. Thanks. Great project by the way.
Hi
Nice work. Quick question. Does your version have the same Pinterest Home VC that displays the search results in a vertical scrolling grid? From the screenshot it looks like your search results are presented as single boards instead of a two-image wide Pinterest-like grid. Thanks
Hey,
Thanks for the awesome library. As the title says, do you have any example of how to customize the search view and the category buttons?
It has many issues there.
Hi,
I would rather like to have a navigationcontroller instead of a modal view for clicked items.
How to make the navigationbar visible?
Thanks and kind regards
Edit:
I found out that self.navigationController!.isNavigationBarHidden = false
does the job, but then the textfield is hidden. How to put the textfield in front of the navigation bar?
Hi,
Firstly, great repo - its perfect for what I'm wanting to do!
Secondly, I can't seem to get the demoSearchHistories array to appear on the initial load of the app - I can only get it to appear once I tap the search text field, then click cancel.
I've tried putting the "ynSearch.setSearchHistories(value: demoSearchHistories)" into a viewDidAppear() class, but no luck. It appears to be the same issue with the demo repo as well.
Thanks!
Hi,
I see delegates for history clicked, category clicked and listview clicked.
But don't see a way to track search button clicked?
Use case:
My search string does not match with anything in database. But I want to get the search string in the program once the search button is clicked.
I try to install the library through the Carthage, it's giving me below error
*** Fetching YNSearch
*** Checking out YNSearch at "0.2.1"
*** xcodebuild output can be found in /var/folders/lf/13b1q2vd1892s9l8knv_m7nw0000gn/T/carthage-xcodebuild.VmVLpH.log
*** Skipped building YNSearch due to the error:
Dependency "YNSearch" has no shared framework schemes
@younatics @controversial The clear history button only works if there are a few histories in the scroll view to the point where it fits inside the current view and the history table/scroll view does scroll. But once the tableview has enough histories to the point where the clear history button is not in the view then the clear history button doesn't work for some reason. Also the "x" button right beside each history doesn't work for same reason. If there are a little bit of history cells then the buttons work fine, but if there a lot then both buttons are disabled or don't work. Try it for yourself. Create a bunch of histories, probably 15-20 searches so you have 15-20 history cells and the buttons inside the history cell and clear history button wont work. Can you fix this as soon as possible. Im trying to roll out my app.
Great project, thank you for sharing!
I am curious if there is an easy way to be able to customise the look and feel of our cells, for example the result cells in YNSearchListViewCell
.
Also, if I want to add an additional field, such as a UILabel
on the right of the cell (for example specifying the occurence of a particular item), is there an easy way to do that in your library?
Thanks again!
How can I change the placeholder to make it easier to tell what they're searching for?
I am trying to get Character enter in Search bar. When I use textField Did begin Editing it overrides the other Delegate and not work properly. I am sending the Single text enter by user to API for getting response and then sending new data. Also how to add navigation bar with search bar, if I unhide navigatio bar search bar disappears. I have earlier solution but not worked
Please provide support for Swift 4 as after upgrading to Swift 4 the library is not compiling.
The button misspells search, where it says "serach" instead.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.