ModernSearchBar | famous iOS search bar with auto completion feature | Autocomplete library

 by   PhilippeBoisney Swift Version: 1.5 License: Non-SPDX

kandi X-RAY | ModernSearchBar Summary

kandi X-RAY | ModernSearchBar Summary

ModernSearchBar is a Swift library typically used in User Interface, Autocomplete applications. ModernSearchBar has no bugs, it has no vulnerabilities and it has low support. However ModernSearchBar has a Non-SPDX License. You can download it from GitHub.

The famous iOS search bar with auto completion feature implemented.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              ModernSearchBar has a low active ecosystem.
              It has 175 star(s) with 33 fork(s). There are 6 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 9 open issues and 8 have been closed. On average issues are closed in 63 days. There are 3 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of ModernSearchBar is 1.5

            kandi-Quality Quality

              ModernSearchBar has no bugs reported.

            kandi-Security Security

              ModernSearchBar has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              ModernSearchBar has a Non-SPDX License.
              Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.

            kandi-Reuse Reuse

              ModernSearchBar releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ModernSearchBar
            Get all kandi verified functions for this library.

            ModernSearchBar Key Features

            No Key Features are available at this moment for ModernSearchBar.

            ModernSearchBar Examples and Code Snippets

            No Code Snippets are available at this moment for ModernSearchBar.

            Community Discussions

            QUESTION

            Change UITableView position if UISearchBar is clicked: [using ModernSearchBar]
            Asked 2018-May-25 at 01:27

            Disclaimer: I'm fairly new to Swift and come from a non developer background - so do bear with me while I explain the issue. I'm using Swift 4, Xcode 9

            I needed an auto suggest feature on a UISearchBar I'm using within my app - for which I've used the ModernSearchBar library. It's been working fine for me, but recently I edited my UISearchBar code so that it moves to the top of the page and a larger area is available for users to see suggestions within. But I'm currently facing this issue - so while the UISearchBar goes up as expected the suggestions list does not. I know this problem is very specific to this library but I would greatly appreciate it if someone pointed me in the right direction on this.

            ModernSearchBar itself is a pretty neat addition to the app otherwise and I would like to retain it if possible. But do let me know if I should consider moving away from it and build the UI out myself.

            ...

            ANSWER

            Answered 2018-May-25 at 01:27

            So found a relatively easy solution - the file ModernSearchBar.swift in the library has a function called configureViews() that sets the attributes of the UITableView (which is the the suggestions list). I edited the searchBar(_ searchBar: UISearchBar, textDidChange searchText: String) function and added this line if self.suggestionsView.frame.height == 0.0 { self.configureViews() } to it. This worked, ie, the suggestions list view also got updated to the UISearchBar's top position as expected. And it also does not update the position multiple times because of the frame height constraint.

            Update: Another issue I ran into was that if I searched for a word and returned to the previous page, the search results view would move up slightly every time and started covering the UISearchBar section and then went out of the view. The problem got solved after I removed the code to update suggestion list size in keyboardWillShow(notification: NSNotification) function in the same file. Not sure about the reason for this but now it works fine on the phone as well as simulator.

            Source https://stackoverflow.com/questions/50498659

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install ModernSearchBar

            You can use CocoaPods to install ModernSearchBar by adding it to your Podfile:.
            Download and drop all *.swift files contained in Pod folder in your project.
            Don't forget to import the assets folder too.
            Enjoy !

            Support

            Create New Pull Request.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries

            Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Autocomplete Libraries

            Try Top Libraries by PhilippeBoisney

            AlertOnboarding

            by PhilippeBoisneySwift

            ArchApp

            by PhilippeBoisneyKotlin

            GithubArchitectureComponents

            by PhilippeBoisneyJava

            NoBullshit

            by PhilippeBoisneyKotlin

            Material

            by PhilippeBoisneyKotlin