Skip to content

Commit

Permalink
fix access
Browse files Browse the repository at this point in the history
  • Loading branch information
alusev committed Dec 30, 2016
1 parent be126eb commit e62008b
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 108 deletions.
2 changes: 1 addition & 1 deletion Classes/UILabel+Error.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import UIKit
extension UILabel: ValidationErrorDisplayable {

// MARK - Validation Error Displayable protocol implementation
func setErrorMessage(errorMessage: String?) {
public func setErrorMessage(errorMessage: String?) {
self.text = errorMessage
}

Expand Down
2 changes: 1 addition & 1 deletion Classes/UITextField+Error.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import UIKit
extension UITextField: Validatable {

// MARK - Validatable Protocol Implementation
func getValue() -> Any? {
public func getValue() -> Any? {
return self.text
}

Expand Down
2 changes: 1 addition & 1 deletion Classes/UITextView+Error.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import UIKit
extension UITextView: Validatable {

// MARK - Validatable Protocol Implementation
func getValue() -> Any? {
public func getValue() -> Any? {
return self.text
}

Expand Down
4 changes: 2 additions & 2 deletions Classes/ValidatableProtocol.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import UIKit

@objc protocol Validatable: class, NSObjectProtocol {
@objc public protocol Validatable: class, NSObjectProtocol {
// a control must return its value
func getValue() -> Any?

Expand All @@ -23,7 +23,7 @@ extension Validatable where Self: UIView {}



@objc enum ValidatableControlState: Int {
@objc public enum ValidatableControlState: Int {
// The control has not been validated yet
case normal = 0

Expand Down
2 changes: 1 addition & 1 deletion Classes/ValidationErrorDisplayable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import Foundation

protocol ValidationErrorDisplayable {
public protocol ValidationErrorDisplayable {

// a control must be able to show error
func setErrorMessage(errorMessage: String?)
Expand Down
4 changes: 2 additions & 2 deletions Classes/ValidatorViewController+Digits.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import UIKit

extension ValidatorViewController {
public extension ValidatorViewController {
/**
* Digit Validator
*/
Expand All @@ -22,7 +22,7 @@ extension ValidatorViewController {
}


func addDigitsOnlyValidation<UIViewThatConformsValidatableProtocol: UIView>
public func addDigitsOnlyValidation<UIViewThatConformsValidatableProtocol: UIView>
(control: UIViewThatConformsValidatableProtocol?,
errorPlaceholder: ValidationErrorDisplayable?,
errorMessage: String = "Únicamente dígitos")
Expand Down
4 changes: 2 additions & 2 deletions Classes/ValidatorViewController+Email.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import UIKit

extension ValidatorViewController {
public extension ValidatorViewController {
/**
* Email Validator
*/
Expand All @@ -21,7 +21,7 @@ extension ValidatorViewController {



func addEmailValidation<UIViewThatConformsValidatableProtocol: UIView>
public func addEmailValidation<UIViewThatConformsValidatableProtocol: UIView>
(control: UIViewThatConformsValidatableProtocol?,
errorPlaceholder: ValidationErrorDisplayable?,
errorMessage: String = "El correo electrónico es inválido")
Expand Down
4 changes: 2 additions & 2 deletions Classes/ValidatorViewController+Equal.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import UIKit

extension ValidatorViewController {
public extension ValidatorViewController {
/**
* Verifies if given value is not empty
*/
Expand Down Expand Up @@ -67,7 +67,7 @@ extension ValidatorViewController {
/**
* Validator method
*/
func addValidation<UIViewThatConformsValidatableProtocol: UIView>
public func addValidation<UIViewThatConformsValidatableProtocol: UIView>
(control control1: UIViewThatConformsValidatableProtocol?,
equalTo control2: UIViewThatConformsValidatableProtocol?,
errorPlaceholder: ValidationErrorDisplayable?,
Expand Down
4 changes: 2 additions & 2 deletions Classes/ValidatorViewController+Mandatory.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import UIKit

extension ValidatorViewController {
public extension ValidatorViewController {
/**
* Verifies if given value is not empty
*/
Expand All @@ -27,7 +27,7 @@ extension ValidatorViewController {
}


func addMandatoryValidation<UIViewThatConformsValidatableProtocol: UIView>
public func addMandatoryValidation<UIViewThatConformsValidatableProtocol: UIView>
(control: UIViewThatConformsValidatableProtocol?,
errorPlaceholder: ValidationErrorDisplayable?,
errorMessage: String = "Este campo es obligatorio")
Expand Down
2 changes: 1 addition & 1 deletion Classes/ValidatorViewController+Minlength.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ extension ValidatorViewController {
/**
* Validator method
*/
func addValidation<UIViewThatConformsValidatableProtocol: UIView>
public func addValidation<UIViewThatConformsValidatableProtocol: UIView>
(control: UIViewThatConformsValidatableProtocol?,
minLength: Int,
errorPlaceholder: ValidationErrorDisplayable?,
Expand Down

This file was deleted.

0 comments on commit e62008b

Please sign in to comment.