Jeff Potter
7ee6f1f255
trying to use other defaults
2015-10-15 13:51:03 -06:00
Jeff Potter
6393f00518
adding travis file
2015-10-15 13:47:44 -06:00
Jeff Potter
3e881899d4
Small chnages to Scheme and moving tests
2015-10-15 13:36:41 -06:00
Jeff Potter
5e32b891c4
Adding Carthage support
2015-10-15 12:06:44 -06:00
Jeff Potter
3614caf857
Merge pull request #58 from c0rn0/fix/excludeAppDelegateFromPod1
...
Added the AppDelegate as an exclude-pod-file
2015-09-22 09:48:57 -06:00
c0rn0
4c00feeefb
Added the AppDelegate as a file that must be excluded from the pod install.
2015-09-22 07:23:26 +02:00
Jeff Potter
0e53e79989
Update README.md
2015-09-20 23:29:24 -06:00
Jeff Potter
d801538d33
Merge pull request #52 from goodeggs/swift-2.0
...
Migrate to Swift 2.0
2015-09-10 20:12:43 -06:00
Jonah Williams
45da08a089
Convert `var` to `let`, resolve warning.
2015-09-10 17:36:23 -07:00
Jonah Williams
2b342f8884
Add missing phone number rule to project
2015-09-10 17:36:00 -07:00
Jonah Williams
b4d1a0c24e
Bump podspec version to `3.0.0`
...
A new major release since Swift 2.0 changes are not backwards compatible for anyone using Xcode 6/Swift 1.2.
2015-09-10 17:29:49 -07:00
Jonah Williams
52a2138dd6
Remove unused framework search path, fix warning
2015-09-10 17:23:12 -07:00
Jonah Williams
7c31d5fd9e
Add constructor calls to fix test build errors
2015-09-10 17:22:49 -07:00
Jonah Williams
1b7c541ed3
Perform recommended update to .pbxproj
...
XCode suggests `ENABLE_TESTABILITY`, and updates to `PRODUCT_BUNDLE_IDENTIFIER`
2015-09-10 17:19:27 -07:00
Jonah Williams
b89c188ecc
`UITextField.text` is now an optional
...
With the Xcode 7 GM release `text` is now an optional despite the documentation stating a default value of "" so we need to unwrap it or provide a default to satisfy the compiler.
2015-09-10 17:16:47 -07:00
Jonah Williams
9b34d138b7
`ValidationError` inherits from `NSObject`
...
`ValidationError` is now an `NSObject` subclass so that `ValidationDelegate` can declare an argument of type `UITextField:ValidationError`. When `ValidationError` is a Swift only class we get a compile error (in Xcode Version 7.0 GM (7A218)):
> Validator.swift:14:10: Method cannot be a member of an @objc protocol because the type of the parameter cannot be represented in Objective-C
Conflicts:
Validator/ValidationError.swift
2015-09-10 17:11:59 -07:00
Jonah Williams
5ed3d8c6ba
Automatic migration to Swift 2.0
...
Converted using Xcode 7.0 GM release (Version 7A218).
2015-09-10 17:09:31 -07:00
Jeff Potter
ca6509687e
Merge pull request #40 from KVTaniguchi/refactorValidationRule
...
apply rules with map and filter
2015-07-20 21:12:53 -07:00
Jeff Potter
dc9224c30f
Merge pull request #39 from KVTaniguchi/RefactorValidator
...
refactor Validator
2015-07-20 21:11:28 -07:00
Jeff Potter
f5376fbeee
Merge pull request #33 from mla2c/master
...
All rules: init with optional user-defined message
2015-07-20 21:10:16 -07:00
Kevin Taniguchi
b95902919b
apply rules with map and filter
2015-06-28 15:55:19 -04:00
Kevin Taniguchi
21a5cc52e2
refactor Validator
...
using type inferencing
loop keys, values in validations
2015-06-28 14:56:40 -04:00
mla2c
4d3f245f7a
Correct conflict
2015-06-12 08:43:19 +02:00
mla2c
d3b92f5a5f
Merge remote-tracking branch 'upstream/master'
2015-06-12 08:36:10 +02:00
Jeff Potter
724a05cf72
Merge pull request #32 from leodasvacas/regex-messages
...
Custom messages for regex rules
2015-06-11 11:00:21 -06:00
mla2c
0edfb58cc4
All rules: init with optional user-defined message possible
2015-06-01 14:54:50 +02:00
mla2c
ba9615cc85
Changes from leodasvacas fork (Custom messages for regex rules, commit 157e9791fb)
2015-06-01 14:13:26 +02:00
Leonardo Yvens
ab2bb9802b
Update README.md
...
Added custom message example. Sanitized SSN example.
2015-05-30 20:03:09 -03:00
leonardo.yvens
157e9791fb
Custom messages for regex rules
2015-05-24 13:12:23 -03:00
Jeff Potter
5a3ddcb795
updating readme, fixing extraneous # in parameter
2015-05-06 13:41:04 -06:00
Jeff Potter
d51e904935
Merge pull request #28 from cameronmccord2/master
...
FloatRule, style transform callback on success/error
2015-05-06 13:27:32 -06:00
Cameron McCord
a685e16bc4
cleaned up code, fixed tests
2015-05-06 11:44:25 -06:00
Cameron McCord
cc0089d901
Changed to passing in transform functions for your text fields
2015-05-06 11:31:49 -06:00
Cameron McCord
afc15b0aa4
colors on text fields get cleared afterwards
2015-05-05 19:21:31 -06:00
Cameron McCord
847885a490
added float rule with tests
2015-05-05 18:58:11 -06:00
Cameron McCord
ab0f1f189d
added test to check that color doesn't change automatically
2015-05-05 18:42:08 -06:00
Cameron McCord
6c93e83a2d
Added test for testing uitextfield border color
2015-05-05 18:38:45 -06:00
Cameron McCord
c6f82a0bea
removed let color
2015-05-05 18:36:12 -06:00
Cameron McCord
ae64d62951
removed color feature
2015-05-05 18:35:23 -06:00
Cameron McCord
4c7462e6a5
Added tests for coloring text fields
2015-05-05 18:32:20 -06:00
Cameron McCord
19490824c3
Error fields auto-set error messages if given, can specify a different text field border color, can have the validator add the colored border to errored text fields
2015-05-05 18:21:35 -06:00
Jeff Potter
cc5e16aedd
Merge pull request #27 from snorpey/deregister-error-fix
...
Fix issue with errors showing up for unregistered fields
2015-05-05 13:03:13 -06:00
Georg Fischer
ffe902dba9
fix issue with errors showing up for unregistered fields
2015-05-05 16:52:08 +02:00
Jeff Potter
34eced2b1e
Merge pull request #26 from cameronmccord2/master
...
Added validate function with callback + tests
2015-04-30 17:59:46 -06:00
Cameron McCord
dfa5c257ce
Added validate function with callback + tests
2015-04-30 17:55:06 -06:00
Jeff Potter
8d25feda3f
Update README.md
2015-04-30 17:46:28 -06:00
Jeff Potter
17c0923537
Merge pull request #17 from zarv1k/swift1.2
...
fixes for compatibility with swift 1.2
2015-04-30 17:43:59 -06:00
Jeff Potter
62c0706d28
Merge pull request #20 from snorpey/deregister-textfield
...
add deregisterField method
2015-04-15 13:37:58 -06:00
Georg Fischer
5fcd1d12e0
add unregisterTextField example to readme
2015-04-15 21:24:46 +02:00
Georg Fischer
18af245f78
add tests for registerField and unregisterField
2015-04-15 21:23:52 +02:00