Skip to content

Commit 8dafa0f

Browse files
author
alejandro soto
committed
more public access modifiers
1 parent 56bd397 commit 8dafa0f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Swift_Validator.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::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

Validator/Validator.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,22 @@ import UIKit
1616

1717
public 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] {

0 commit comments

Comments
 (0)