Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Custom floating label style input field for iOS with swift
floating label is a text label which appears inside the input field at full font-size. When interacted with, the label “floats” above, making room for the user to input a value

## Features
* Float label pattern
* Custom text input
* Text input validation
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no input validation on it. this should not be here


## Requirement
* iOS
* compatible using swift

## Get started with custom floating label style input
* Create a swift file to hold our customization code.
* We create our text field in our storyboard and assign it’s class to our custom 'UITextField'
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Copy FloatingLabelinput.swift to your project.
  • Assign the FloatingLabelinput as a custom class to your UITextField in storyboard.


[To read more on this and how to impleament](https://medium.com/sprinthub/creating-a-custom-floating-label-style-text-field-in-swift-f9f6aeaf39fe)

## Contribution
The code is on [Github](https://github.com/quacklabs/FloatingLabelInputSwift). feel free to fork, modify and make it better.