Comments (1)
Hey @tnmendex, the example indeed does not include the actual PhoneNumberRule()
. To use this rule, simple add PhoneNumberRule()
to rules (the last argument in registerField). Sticking with the example, you can change line 55 of ViewController.swift
to: validator.registerField(phoneNumberTextField, errorLabel: phoneNumberErrorLabel, rules: [PhoneNumberRule()])
from swiftvalidator.
Related Issues (20)
- swiftValidator compatible Swift 3.2 ? HOT 1
- Has this project been abandoned? HOT 1
- Add minimum Date Rule, Social Security Number Rule, and Routing Number Rule
- Interested in becoming a contributor HOT 3
- Set all provided error labels as hidden - new property
- 'ViewController' does not conform to protocol 'ValidationDelegate' HOT 2
- Cannot call value of non-function type 'ValidatorDictionary<ValidationRule>'
- Podspec version HOT 1
- CharacterSetRule didn't marked as "open"
- pods osx support
- library not updated for swift 4, gives issues HOT 1
- Add support for Swift 5.0 HOT 1
- Error: An empty identity is not valid when signing a binary for the product type 'Application'. (in target 'Validator') HOT 10
- ValidationResult error
- Swift package manager support HOT 1
- getting an error "Ambiguous use of 'validate'" HOT 1
- upgrade to swift 5?
- HIPAA policy compliance
- Need to add min-max amount rule
- Need to update podspec file to use version 5.0.0 via cocoapods.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swiftvalidator.