Comments (3)
I had the same problem
I had nomal searchBar.delegate set, side by side with searchBar.delegateModernSearchBar
When i removed searchBar.delegate = self
everything started working
from modernsearchbar.
Can you provide me some code or snippet to reproduce this issue ?
from modernsearchbar.
` //adding search bar
searchBar = ModernSearchBar()
searchBar.sizeToFit()
//searchBar.setImage(#imageLiteral(resourceName: "logo"), for: .search, state: .normal)
navigationItem.titleView = searchBar
searchBar.delegateModernSearchBar = self
searchBar.delegate = self
self.searchBar.setDatas(datas: ["yo", "hello"])`
neither "yo" or "hello" appears in suggestion view when either "y" or "h" is typed in (Suggestionview is not shown). Also adding a cancel button to left nav item when user "begins to edit search bar". I did try without cancel button and still no luck, yet there is a right nav item that i have yet to try without both buttons.
from modernsearchbar.
Related Issues (17)
- Better instalation section HOT 2
- Swift 2.3 Code HOT 2
- Using Firebase HOT 5
- Crash HOT 4
- ReloadData HOT 1
- Reload Data
- Can't customize searchBar
- Suggestions view does not shift when SearchBar shifts
- Thread 1: Fatal error: Unexpectedly found nil while unwrapping an Optional value HOT 1
- I dont want suggestion view to be opened when I type some text . Can we have such feature ? or is there any flag already set ?
- Swift 4.2 errors HOT 4
- I propose fix to avoid null failure on iPhone 5
- How to close suggestion when i selected one ? HOT 1
- Modern Search Bar incorrect Frame HOT 1
- First research doesn't open SuggestionsView HOT 1
- SuggestionsView open but not visible HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from modernsearchbar.