/FloatLabelRow

An Eureka row that shows a float label

Primary LanguageSwiftMIT LicenseMIT

FloatLabelRow

Build status Platform iOS Swift 3 compatible Carthage compatible CocoaPods compatible License: MIT

By Xmartlabs SRL.

Introduction

FloatLabelRow is an Eureka custom row that shows a float label.

FloatLabelRow example

Usage

import Eureka
import FloatLabelRow


class ExampleViewController: FormViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        form +++ Section()
            <<< TextFloatLabelRow() {
                $0.title = "Text Field"
                $0.value = "Placeholder"
            }
            <<< IntFloatLabelRow() {
                $0.title = "Int field"
                $0.value = 2017
            }
            <<< PasswordFloatLabelRow() {
                $0.title = "Password field"
                $0.value = "password"
            }
            +++ Section()
            <<< DecimalFloatLabelRow() {
                $0.title = "Scientific style"
                $0.value = 2017
                let formatter = NumberFormatter()
                formatter.locale = .current
                formatter.numberStyle = .scientific
                $0.formatter = formatter
            }
            <<< IntFloatLabelRow() {
                $0.title = "Spell out style"
                $0.value = 2017
                let formatter = NumberFormatter()
                formatter.locale = .current
                formatter.numberStyle = .spellOut
                $0.formatter = formatter
        }
    }

}

Requirements

  • iOS 9.0+
  • Xcode 8.0+
  • Eureka 3.0+

Getting involved

  • If you want to contribute please feel free to submit pull requests.
  • If you have a feature request please open an issue.
  • If you found a bug or need help please check older issues, FAQ and threads on StackOverflow (Tag 'FloatLabelRow') before submitting an issue.

Before contribute check the CONTRIBUTING file for more info.

If you use FloatLabelRow in your app we would love to hear about it! Drop us a line on twitter.

Examples

Follow these 3 steps to run Example project: Clone FloatLabelRow repository, open FloatLabelRow workspace and run the Example project.

You can also experiment and learn with the FloatLabelRow Playground which is contained in FloatLabelRow.workspace.

Installation

CocoaPods

CocoaPods is a dependency manager for Cocoa projects.

To install FloatLabelRow, simply add the following line to your Podfile:

pod 'FloatLabelRow', '~> 1.0'

Carthage

Carthage is a simple, decentralized dependency manager for Cocoa.

To install FloatLabelRow, simply add the following line to your Cartfile:

github "EurekaCommunity/FloatLabelRow" ~> 1.0

Author

FAQ

No content yet.

Change Log

This can be found in the CHANGELOG.md file.