SwiftValidator/Validator/ValidationError.swift

22 lines
422 B
Swift

//
// File.swift
// Pingo
//
// Created by Jeff Potter on 11/11/14.
// Copyright (c) 2014 Byron Mackay. All rights reserved.
//
import Foundation
import UIKit
public class ValidationError {
let textField:UITextField
var errorLabel:UILabel?
let errorMessage:String
public init(textField:UITextField, error:String){
self.textField = textField
self.errorMessage = error
}
}