Skip to content

Commit b216f7b

Browse files
author
alejandro soto
committed
podspec updated and more updates
1 parent e10bdb3 commit b216f7b

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
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.4"
3+
s.version = "2.0.5"
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.4" }
12+
s.source = { :git => "https://github.com/asotog/swift-validator.git", :tag => "2.0.5" }
1313
s.source_files = "Validator/*.swift"
1414
s.frameworks = ['Foundation', 'UIKit']
1515
s.requires_arc = true

Validator/ValidationError.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ import Foundation
1010
import UIKit
1111

1212
public class ValidationError {
13-
let textField:UITextField
14-
var errorLabel:UILabel?
15-
let errorMessage:String
13+
public let textField:UITextField
14+
public var errorLabel:UILabel?
15+
public let errorMessage:String
1616

1717
public init(textField:UITextField, error:String){
1818
self.textField = textField

Validator/ValidationRule.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@ import Foundation
1010
import UIKit
1111

1212
public class ValidationRule {
13-
var textField:UITextField
14-
var errorLabel:UILabel?
15-
var rules:[Rule] = []
13+
public var textField:UITextField
14+
public var errorLabel:UILabel?
15+
public var rules:[Rule] = []
1616

1717
public init(textField: UITextField, rules:[Rule], errorLabel:UILabel?){
1818
self.textField = textField
1919
self.errorLabel = errorLabel
2020
self.rules = rules
2121
}
2222

23-
func validateField() -> ValidationError? {
23+
public func validateField() -> ValidationError? {
2424
for rule in rules {
2525
var isValid:Bool = rule.validate(textField.text)
2626
if !isValid {

Validator/Validator.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import UIKit
1717
public class Validator {
1818
// dictionary to handle complex view hierarchies like dynamic tableview cells
1919
public var errors:[UITextField:ValidationError] = [:]
20-
var validations:[UITextField:ValidationRule] = [:]
20+
public var validations:[UITextField:ValidationRule] = [:]
2121

2222
public init(){}
2323

0 commit comments

Comments
 (0)