Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/namshi/nmfloatlabelsearchfield

A lightweight subclass of UITextField to display floating hint and suggestion list as you type
https://github.com/namshi/nmfloatlabelsearchfield

Last synced: 1 day ago
JSON representation

A lightweight subclass of UITextField to display floating hint and suggestion list as you type

Awesome Lists containing this project

README

        

# NMFloatLabelSearchField
A lightweight subclass of `SkyFloatingLabelTextField` to display dynamic floating hints and suggestion list as you type text in the text field.
It's a combination of [`SkyFloatingLabelTextField`](https://github.com/Skyscanner/SkyFloatingLabelTextField) and [`SearchTextField`](https://github.com/apasccon/SearchTextField) pods.

### NMFloatLabelSearchField Demo Gif

#### From Example App
![Demo_v1.0.0](https://github.com/namshi/NMFloatLabelSearchField/blob/master/Screenshots/NMFloatLabelSearchField_1.0.0.gif)

#### From Namshi App
![Namshi App Ar](https://github.com/namshi/NMFloatLabelSearchField/blob/master/Screenshots/UsageInNamshiAr.gif)
![Namshi App En](https://github.com/namshi/NMFloatLabelSearchField/blob/master/Screenshots/UsageInNamshiEn.gif)

## Installation

### Requirements
iOS 9.3 or above

### Swift Version
Swift 4 supported from 1.0.0 version.
Swift 4.2 supported from 2.0.0 version.

### CocoaPods
The control is available through [CocoaPods](https://cocoapods.org/). `CocoaPods` can be installed using Ruby gems:

```
$ gem install cocoapods
```

or if you have already cocoapods installed, then update as:

```
$ cocoapods update
```

Then simply add `NMFloatLabelSearchField` to your Podfile:

```
use_frameworks!

pod 'NMFloatLabelSearchField', '~> 2.0.0'
```

Lastly, install the latest version of the library by running:

```
pod install
```

`https://github.com/namshi/NMFloatLabelSearchField.git`

### Manual
You can download the latest files from our [Releases](https://github.com/namshi/NMFloatLabelSearchField/releases) page. After doing so, copy the Swift file in the Sources folder to your project.

### Demo
Check out the Example project.

## Copyrights
This library has [SkyFloatingLabelTextField](https://github.com/Skyscanner/SkyFloatingLabelTextField) as a dependency and includes code from [SearchTextField](https://github.com/apasccon/SearchTextField). All the code from these two pods is the copyright of the respective authors. If you like this library, please appreciate these two libraries as well.

All right reserved. Namshi Team 2018.