Hey Cal, I'm new to iOS. I have one question. How can it be that you haven't put your Search bar nowhere in your storyboard, but it still shows up and works?
Hi Cal! Thanks for this. Its been very useful. Just wanted to check, if i wanted the search bar to search through more than one labels, which is now only filtering for shapes.name i.e i want to add description labels and let it search through as well. Many thanks in advance!
Hello, At 04:30 create another variable exactly the same as our searchTextMatch but instead of name call description. Then I imagine you would want to return true if (name matches or description matches) and scope matches.
@@CodeWithCal Hi Cal! right now my code is let searchTextMatch = shape.name.lowercased().contains(searchText.lowercased() - how do i add another variable say shape.description.lowercased (which is another label i want it to be search through? many tahnks in advance!
@@yenghow Something like this is what I was imagining let searchTextMatch = shape.name.lowercased().contains(searchText.lowercased()) let descSearchTextMatch = shape.description.lowercased().contains(searchText.lowercased()) return scopeMatch && (searchTextMatch || descSearchTextMatch)
Thanks a lot mate, was facing issue with navcontroller this helped a lot
Hey Cal, just wanted to let you know that your content is great! Keep it coming!
Thanks 😊
Thank you 🙂 It helps me a lot👍
Great video cal !
I think the tempo is little bit fast
Hey Cal, I'm new to iOS. I have one question. How can it be that you haven't put your Search bar nowhere in your storyboard, but it still shows up and works?
Just play it on 0.25 and you will understand everything
Great stuff thanks
Hi Cal! Thanks for this. Its been very useful. Just wanted to check, if i wanted the search bar to search through more than one labels, which is now only filtering for shapes.name i.e i want to add description labels and let it search through as well. Many thanks in advance!
Hello,
At 04:30 create another variable exactly the same as our searchTextMatch but instead of name call description.
Then I imagine you would want to return true if (name matches or description matches) and scope matches.
@@CodeWithCal Hi Cal! right now my code is let searchTextMatch = shape.name.lowercased().contains(searchText.lowercased() - how do i add another variable say shape.description.lowercased (which is another label i want it to be search through? many tahnks in advance!
@@yenghow
Something like this is what I was imagining
let searchTextMatch = shape.name.lowercased().contains(searchText.lowercased())
let descSearchTextMatch = shape.description.lowercased().contains(searchText.lowercased())
return scopeMatch && (searchTextMatch || descSearchTextMatch)
@@CodeWithCal that works like magic. Thank you Cal!
Great Tutorial and thank you for the source code, is there a way to select more than one scope button ?
I don't believe so.
I could be wrong. If you do find a way please let me know :)
@@CodeWithCal Will do.. thank you 💐
tnx