GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - devikkim/ValidationTextField: A UITextField that easy validate text of UITextField.

BranchesTags
Open more actions menu

Latest commit

 

History

31 Commits
31 Commits

Folders and files

NameName
Last commit message
Last commit date
Example
Example
 
 
References
References
 
 
ValidationTextField
ValidationTextField
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
LICENSE
LICENSE
 
 
Podfile
Podfile
 
 
README.md
README.md
 
 
ValidationTextField.podspec
ValidationTextField.podspec
 
 
_Pods.xcodeproj
_Pods.xcodeproj
 
 

Repository files navigation

ValidationTextField

CI Status Version Platform

A UITextField that easy validate text of UITextField

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

  • demo.gif

Demo 

  • can change success image, error image

Demo 

  • sample code
@IBOutlet weak var nameTextField: ValidationTextField!
@IBOutlet weak var passwordTextField: ValidationTextField!
@IBOutlet weak var passwordConfirmTextField: ValidationTextField!
@IBOutlet weak var emailTextField: ValidationTextField!

override func viewDidLoad() {
  super.viewDidLoad()
  nameTextField.validCondition = {$0.count > 5}
  emailTextField.validCondition = {$0.count > 5 && $0.contains("@")}
  passwordTextField.validCondition = {$0.count > 8}
  passwordConfirmTextField.validCondition = {
    guard let password = self.passwordTextField.text else {
      return false
    }
    return $0 == password
  }

}

Installation

ValidationTextField is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'ValidationTextField'

Author

[email protected]

License

Apache License Version 2.0

About

A UITextField that easy validate text of UITextField.

Topics

iosswifttextfield-validationuitextfieldvalidation

Resources

Readme
Apache-2.0 license
Activity

Stars

9 stars

Watchers

3 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.