File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 11Pod ::Spec . new do |s |
22 s . name = "Swift_Validator"
3- s . version = "2.0.2 "
3+ s . version = "2.0.3 "
44 s . summary = "A UITextField Validation library for Swift"
55 s . homepage = "https://github.com/jpotts18/swift-validator"
66 s . screenshots = "https://raw.githubusercontent.com/jpotts18/swift-validator/master/swift-validator-v2.gif"
@@ -9,7 +9,7 @@ Pod::Spec.new do |s|
99 s . social_media_url = "http://twitter.com/jpotts18"
1010 s . platform = :ios
1111 s . ios . deployment_target = '8.0'
12- s . source = { :git => "https://github.com/asotog/swift-validator.git" , :tag => "2.0.2 " }
12+ s . source = { :git => "https://github.com/asotog/swift-validator.git" , :tag => "2.0.3 " }
1313 s . source_files = "Validator/*.swift"
1414 s . frameworks = [ 'Foundation' , 'UIKit' ]
1515 s . requires_arc = true
Original file line number Diff line number Diff line change @@ -16,22 +16,22 @@ import UIKit
1616
1717public class Validator {
1818 // dictionary to handle complex view hierarchies like dynamic tableview cells
19- var errors : [ UITextField : ValidationError ] = [ : ]
19+ public var errors : [ UITextField : ValidationError ] = [ : ]
2020 var validations : [ UITextField : ValidationRule ] = [ : ]
2121
2222 public init ( ) { }
2323
2424 // MARK: Using Keys
2525
26- func registerField( textField: UITextField , rules: [ Rule ] ) {
26+ public func registerField( textField: UITextField , rules: [ Rule ] ) {
2727 validations [ textField] = ValidationRule ( textField: textField, rules: rules, errorLabel: nil )
2828 }
2929
30- func registerField( textField: UITextField , errorLabel: UILabel , rules: [ Rule ] ) {
30+ public func registerField( textField: UITextField , errorLabel: UILabel , rules: [ Rule ] ) {
3131 validations [ textField] = ValidationRule ( textField: textField, rules: rules, errorLabel: errorLabel)
3232 }
3333
34- func validateAll( delegate: ValidationDelegate ) {
34+ public func validateAll( delegate: ValidationDelegate ) {
3535
3636 for field in validations. keys {
3737 if let currentRule: ValidationRule = validations [ field] {
You can’t perform that action at this time.
0 commit comments