";
- };
-/* End PBXVariantGroup section */
-
-/* Begin XCBuildConfiguration section */
- 62D1AE341A1E6D4500E4DFF8 /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
- CLANG_CXX_LIBRARY = "libc++";
- CLANG_ENABLE_MODULES = YES;
- CLANG_ENABLE_OBJC_ARC = YES;
- CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
- CLANG_WARN_BOOL_CONVERSION = YES;
- CLANG_WARN_COMMA = YES;
- CLANG_WARN_CONSTANT_CONVERSION = YES;
- CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
- CLANG_WARN_EMPTY_BODY = YES;
- CLANG_WARN_ENUM_CONVERSION = YES;
- CLANG_WARN_INFINITE_RECURSION = YES;
- CLANG_WARN_INT_CONVERSION = YES;
- CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
- CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
- CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
- CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
- CLANG_WARN_STRICT_PROTOTYPES = YES;
- CLANG_WARN_SUSPICIOUS_MOVE = YES;
- CLANG_WARN_UNREACHABLE_CODE = YES;
- CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
- "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
- COPY_PHASE_STRIP = NO;
- ENABLE_STRICT_OBJC_MSGSEND = YES;
- ENABLE_TESTABILITY = YES;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_NO_COMMON_BLOCKS = YES;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "DEBUG=1",
- "$(inherited)",
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
- GCC_WARN_UNDECLARED_SELECTOR = YES;
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
- GCC_WARN_UNUSED_FUNCTION = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 8.0;
- MTL_ENABLE_DEBUG_INFO = YES;
- ONLY_ACTIVE_ARCH = YES;
- SDKROOT = iphoneos;
- SWIFT_OPTIMIZATION_LEVEL = "-Onone";
- SWIFT_VERSION = 4.2;
- };
- name = Debug;
- };
- 62D1AE351A1E6D4500E4DFF8 /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
- CLANG_CXX_LIBRARY = "libc++";
- CLANG_ENABLE_MODULES = YES;
- CLANG_ENABLE_OBJC_ARC = YES;
- CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
- CLANG_WARN_BOOL_CONVERSION = YES;
- CLANG_WARN_COMMA = YES;
- CLANG_WARN_CONSTANT_CONVERSION = YES;
- CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
- CLANG_WARN_EMPTY_BODY = YES;
- CLANG_WARN_ENUM_CONVERSION = YES;
- CLANG_WARN_INFINITE_RECURSION = YES;
- CLANG_WARN_INT_CONVERSION = YES;
- CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
- CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
- CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
- CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
- CLANG_WARN_STRICT_PROTOTYPES = YES;
- CLANG_WARN_SUSPICIOUS_MOVE = YES;
- CLANG_WARN_UNREACHABLE_CODE = YES;
- CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
- "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
- COPY_PHASE_STRIP = YES;
- ENABLE_NS_ASSERTIONS = NO;
- ENABLE_STRICT_OBJC_MSGSEND = YES;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_NO_COMMON_BLOCKS = YES;
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
- GCC_WARN_UNDECLARED_SELECTOR = YES;
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
- GCC_WARN_UNUSED_FUNCTION = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 8.0;
- MTL_ENABLE_DEBUG_INFO = NO;
- SDKROOT = iphoneos;
- SWIFT_COMPILATION_MODE = wholemodule;
- SWIFT_VERSION = 4.2;
- VALIDATE_PRODUCT = YES;
- };
- name = Release;
- };
- 62D1AE3A1A1E6D4500E4DFF8 /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- BUNDLE_LOADER = "$(TEST_HOST)";
- CLANG_ENABLE_MODULES = YES;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "DEBUG=1",
- "$(inherited)",
- );
- INFOPLIST_FILE = ValidatorTests/Info.plist;
- LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
- PRODUCT_BUNDLE_IDENTIFIER = "me.jeffpotter.$(PRODUCT_NAME:rfc1034identifier)";
- PRODUCT_NAME = "$(TARGET_NAME)";
- TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Validator.app/Validator";
- };
- name = Debug;
- };
- 62D1AE3B1A1E6D4500E4DFF8 /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- BUNDLE_LOADER = "$(TEST_HOST)";
- CLANG_ENABLE_MODULES = YES;
- INFOPLIST_FILE = ValidatorTests/Info.plist;
- LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
- PRODUCT_BUNDLE_IDENTIFIER = "me.jeffpotter.$(PRODUCT_NAME:rfc1034identifier)";
- PRODUCT_NAME = "$(TARGET_NAME)";
- TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Validator.app/Validator";
- };
- name = Release;
- };
- FB465CCC1B9884F400398388 /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- CODE_SIGN_IDENTITY = "";
- CURRENT_PROJECT_VERSION = 1;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- DEFINES_MODULE = YES;
- DYLIB_COMPATIBILITY_VERSION = 1;
- DYLIB_CURRENT_VERSION = 1;
- DYLIB_INSTALL_NAME_BASE = "@rpath";
- GCC_NO_COMMON_BLOCKS = YES;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "DEBUG=1",
- "$(inherited)",
- );
- INFOPLIST_FILE = SwiftValidator/Info.plist;
- INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
- LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
- PRODUCT_BUNDLE_IDENTIFIER = "me.jeffpotter.$(PRODUCT_NAME:rfc1034identifier)";
- PRODUCT_NAME = "$(TARGET_NAME)";
- SKIP_INSTALL = YES;
- SWIFT_VERSION = 5.0;
- TARGETED_DEVICE_FAMILY = "1,2";
- VERSIONING_SYSTEM = "apple-generic";
- VERSION_INFO_PREFIX = "";
- };
- name = Debug;
- };
- FB465CCD1B9884F400398388 /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- CODE_SIGN_IDENTITY = "";
- COPY_PHASE_STRIP = NO;
- CURRENT_PROJECT_VERSION = 1;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- DEFINES_MODULE = YES;
- DYLIB_COMPATIBILITY_VERSION = 1;
- DYLIB_CURRENT_VERSION = 1;
- DYLIB_INSTALL_NAME_BASE = "@rpath";
- GCC_NO_COMMON_BLOCKS = YES;
- INFOPLIST_FILE = SwiftValidator/Info.plist;
- INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
- LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
- PRODUCT_BUNDLE_IDENTIFIER = "me.jeffpotter.$(PRODUCT_NAME:rfc1034identifier)";
- PRODUCT_NAME = "$(TARGET_NAME)";
- SKIP_INSTALL = YES;
- SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
- SWIFT_VERSION = 5.0;
- TARGETED_DEVICE_FAMILY = "1,2";
- VERSIONING_SYSTEM = "apple-generic";
- VERSION_INFO_PREFIX = "";
- };
- name = Release;
- };
- FB465CCE1B9884F400398388 /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- FRAMEWORK_SEARCH_PATHS = (
- "$(SDKROOT)/Developer/Library/Frameworks",
- "$(inherited)",
- );
- GCC_NO_COMMON_BLOCKS = YES;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "DEBUG=1",
- "$(inherited)",
- );
- INFOPLIST_FILE = SwiftValidatorTests/Info.plist;
- IPHONEOS_DEPLOYMENT_TARGET = 8.4;
- LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
- PRODUCT_BUNDLE_IDENTIFIER = "com.levous.$(PRODUCT_NAME:rfc1034identifier)";
- PRODUCT_NAME = "$(TARGET_NAME)";
- SWIFT_VERSION = 5.0;
- TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Validator.app/Validator";
- };
- name = Debug;
- };
- FB465CCF1B9884F400398388 /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- COPY_PHASE_STRIP = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- FRAMEWORK_SEARCH_PATHS = (
- "$(SDKROOT)/Developer/Library/Frameworks",
- "$(inherited)",
- );
- GCC_NO_COMMON_BLOCKS = YES;
- INFOPLIST_FILE = SwiftValidatorTests/Info.plist;
- IPHONEOS_DEPLOYMENT_TARGET = 8.4;
- LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
- PRODUCT_BUNDLE_IDENTIFIER = "com.levous.$(PRODUCT_NAME:rfc1034identifier)";
- PRODUCT_NAME = "$(TARGET_NAME)";
- SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
- SWIFT_VERSION = 5.0;
- TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Validator.app/Validator";
- };
- name = Release;
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 62D1AE121A1E6D4400E4DFF8 /* Build configuration list for PBXProject "Validator" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 62D1AE341A1E6D4500E4DFF8 /* Debug */,
- 62D1AE351A1E6D4500E4DFF8 /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
- 62D1AE391A1E6D4500E4DFF8 /* Build configuration list for PBXNativeTarget "ValidatorTests" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 62D1AE3A1A1E6D4500E4DFF8 /* Debug */,
- 62D1AE3B1A1E6D4500E4DFF8 /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
- FB465CD01B9884F400398388 /* Build configuration list for PBXNativeTarget "SwiftValidator" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- FB465CCC1B9884F400398388 /* Debug */,
- FB465CCD1B9884F400398388 /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
- FB465CD21B9884F400398388 /* Build configuration list for PBXNativeTarget "SwiftValidatorTests" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- FB465CCE1B9884F400398388 /* Debug */,
- FB465CCF1B9884F400398388 /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
-/* End XCConfigurationList section */
- };
- rootObject = 62D1AE0F1A1E6D4400E4DFF8 /* Project object */;
-}
diff --git a/Validator.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Validator.xcodeproj/project.xcworkspace/contents.xcworkspacedata
deleted file mode 100644
index c457bdb..0000000
--- a/Validator.xcodeproj/project.xcworkspace/contents.xcworkspacedata
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
-
diff --git a/Validator.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/Validator.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
deleted file mode 100644
index 18d9810..0000000
--- a/Validator.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
- IDEDidComputeMac32BitWarning
-
-
-
diff --git a/Validator.xcodeproj/xcshareddata/xcschemes/SwiftValidator.xcscheme b/Validator.xcodeproj/xcshareddata/xcschemes/SwiftValidator.xcscheme
deleted file mode 100644
index d6ae464..0000000
--- a/Validator.xcodeproj/xcshareddata/xcschemes/SwiftValidator.xcscheme
+++ /dev/null
@@ -1,113 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/Validator.xcodeproj/xcshareddata/xcschemes/SwiftValidatorTests.xcscheme b/Validator.xcodeproj/xcshareddata/xcschemes/SwiftValidatorTests.xcscheme
deleted file mode 100644
index d88d081..0000000
--- a/Validator.xcodeproj/xcshareddata/xcschemes/SwiftValidatorTests.xcscheme
+++ /dev/null
@@ -1,102 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/Validator.xcodeproj/xcshareddata/xcschemes/Validator.xcscheme b/Validator.xcodeproj/xcshareddata/xcschemes/Validator.xcscheme
deleted file mode 100644
index 5da1196..0000000
--- a/Validator.xcodeproj/xcshareddata/xcschemes/Validator.xcscheme
+++ /dev/null
@@ -1,111 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/Validator/AppDelegate.swift b/Validator/AppDelegate.swift
deleted file mode 100644
index 598ba7a..0000000
--- a/Validator/AppDelegate.swift
+++ /dev/null
@@ -1,20 +0,0 @@
-//
-// AppDelegate.swift
-// Validator
-//
-// Created by Jeff Potter on 11/20/14.
-// Copyright (c) 2014 jpotts18. All rights reserved.
-//
-
-import UIKit
-
-@UIApplicationMain
-class AppDelegate: UIResponder, UIApplicationDelegate {
-
- var window: UIWindow?
-
- func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
- return true
- }
-}
-
diff --git a/Validator/Base.lproj/LaunchScreen.xib b/Validator/Base.lproj/LaunchScreen.xib
deleted file mode 100644
index 2277799..0000000
--- a/Validator/Base.lproj/LaunchScreen.xib
+++ /dev/null
@@ -1,42 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/Validator/Base.lproj/Main.storyboard b/Validator/Base.lproj/Main.storyboard
deleted file mode 100644
index 35799c5..0000000
--- a/Validator/Base.lproj/Main.storyboard
+++ /dev/null
@@ -1,476 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/Validator/Images.xcassets/AppIcon.appiconset/Contents.json b/Validator/Images.xcassets/AppIcon.appiconset/Contents.json
deleted file mode 100644
index b8236c6..0000000
--- a/Validator/Images.xcassets/AppIcon.appiconset/Contents.json
+++ /dev/null
@@ -1,48 +0,0 @@
-{
- "images" : [
- {
- "idiom" : "iphone",
- "size" : "20x20",
- "scale" : "2x"
- },
- {
- "idiom" : "iphone",
- "size" : "20x20",
- "scale" : "3x"
- },
- {
- "idiom" : "iphone",
- "size" : "29x29",
- "scale" : "2x"
- },
- {
- "idiom" : "iphone",
- "size" : "29x29",
- "scale" : "3x"
- },
- {
- "idiom" : "iphone",
- "size" : "40x40",
- "scale" : "2x"
- },
- {
- "idiom" : "iphone",
- "size" : "40x40",
- "scale" : "3x"
- },
- {
- "idiom" : "iphone",
- "size" : "60x60",
- "scale" : "2x"
- },
- {
- "idiom" : "iphone",
- "size" : "60x60",
- "scale" : "3x"
- }
- ],
- "info" : {
- "version" : 1,
- "author" : "xcode"
- }
-}
\ No newline at end of file
diff --git a/Validator/Info.plist b/Validator/Info.plist
deleted file mode 100644
index 6905cc6..0000000
--- a/Validator/Info.plist
+++ /dev/null
@@ -1,40 +0,0 @@
-
-
-
-
- CFBundleDevelopmentRegion
- en
- CFBundleExecutable
- $(EXECUTABLE_NAME)
- CFBundleIdentifier
- $(PRODUCT_BUNDLE_IDENTIFIER)
- CFBundleInfoDictionaryVersion
- 6.0
- CFBundleName
- $(PRODUCT_NAME)
- CFBundlePackageType
- APPL
- CFBundleShortVersionString
- 1.0
- CFBundleSignature
- ????
- CFBundleVersion
- 1
- LSRequiresIPhoneOS
-
- UILaunchStoryboardName
- LaunchScreen
- UIMainStoryboardFile
- Main
- UIRequiredDeviceCapabilities
-
- armv7
-
- UISupportedInterfaceOrientations
-
- UIInterfaceOrientationPortrait
- UIInterfaceOrientationLandscapeLeft
- UIInterfaceOrientationLandscapeRight
-
-
-
diff --git a/Validator/ViewController.swift b/Validator/ViewController.swift
deleted file mode 100644
index d04244a..0000000
--- a/Validator/ViewController.swift
+++ /dev/null
@@ -1,108 +0,0 @@
-//
-// ViewController.swift
-// Validator
-//
-// Created by Jeff Potter on 11/20/14.
-// Copyright (c) 2014 jpotts18. All rights reserved.
-//
-
-import Foundation
-import UIKit
-import SwiftValidator
-
-class ViewController: UIViewController , ValidationDelegate, UITextFieldDelegate {
-
- // TextFields
- @IBOutlet weak var fullNameTextField: UITextField!
- @IBOutlet weak var emailTextField: UITextField!
- @IBOutlet weak var phoneNumberTextField: UITextField!
- @IBOutlet weak var zipcodeTextField: UITextField!
- @IBOutlet weak var emailConfirmTextField: UITextField!
- @IBOutlet weak var notesTextView: UITextView!
-
- // Error Labels
- @IBOutlet weak var fullNameErrorLabel: UILabel!
- @IBOutlet weak var emailErrorLabel: UILabel!
- @IBOutlet weak var phoneNumberErrorLabel: UILabel!
- @IBOutlet weak var zipcodeErrorLabel: UILabel!
- @IBOutlet weak var emailConfirmErrorLabel: UILabel!
- @IBOutlet weak var notesErrorLabel: UILabel!
-
- let validator = Validator()
-
- override func viewDidLoad() {
- super.viewDidLoad()
-
- self.view.addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(ViewController.hideKeyboard)))
-
- validator.styleTransformers(success:{ (validationRule) -> Void in
- print("here")
- // clear error label
- validationRule.errorLabel?.isHidden = true
- validationRule.errorLabel?.text = ""
-
- if let textField = validationRule.field as? UITextField {
- textField.layer.borderColor = UIColor.green.cgColor
- textField.layer.borderWidth = 0.5
- } else if let textField = validationRule.field as? UITextView {
- textField.layer.borderColor = UIColor.green.cgColor
- textField.layer.borderWidth = 0.5
- }
- }, error:{ (validationError) -> Void in
- print("error")
- validationError.errorLabel?.isHidden = false
- validationError.errorLabel?.text = validationError.errorMessage
- if let textField = validationError.field as? UITextField {
- textField.layer.borderColor = UIColor.red.cgColor
- textField.layer.borderWidth = 1.0
- } else if let textField = validationError.field as? UITextView {
- textField.layer.borderColor = UIColor.red.cgColor
- textField.layer.borderWidth = 1.0
- }
- })
-
- validator.registerField(fullNameTextField, errorLabel: fullNameErrorLabel , rules: [RequiredRule(), FullNameRule()])
- validator.registerField(emailTextField, errorLabel: emailErrorLabel, rules: [RequiredRule(), EmailRule()])
- validator.registerField(emailConfirmTextField, errorLabel: emailConfirmErrorLabel, rules: [RequiredRule(), ConfirmationRule(confirmField: emailTextField)])
- validator.registerField(phoneNumberTextField, errorLabel: phoneNumberErrorLabel, rules: [RequiredRule(), MinLengthRule(length: 9)])
- validator.registerField(zipcodeTextField, errorLabel: zipcodeErrorLabel, rules: [RequiredRule(), ZipCodeRule()])
- validator.registerField(notesTextView, errorLabel: notesErrorLabel, rules: [RequiredRule()])
- }
-
- @IBAction func submitTapped(_ sender: AnyObject) {
- print("Validating...")
- validator.validate(self)
- }
-
- // MARK: ValidationDelegate Methods
-
- func validationSuccessful() {
- print("Validation Success!")
- let alert = UIAlertController(title: "Success", message: "You are validated!", preferredStyle: UIAlertController.Style.alert)
- let defaultAction = UIAlertAction(title: "OK", style: .default, handler: nil)
- alert.addAction(defaultAction)
- self.present(alert, animated: true, completion: nil)
-
- }
- func validationFailed(_ errors:[(Validatable, ValidationError)]) {
- print("Validation FAILED!")
- }
-
- @objc func hideKeyboard(){
- self.view.endEditing(true)
- }
-
- // MARK: Validate single field
- // Don't forget to use UITextFieldDelegate
- func textFieldShouldReturn(_ textField: UITextField) -> Bool {
- validator.validateField(textField){ error in
- if error == nil {
- // Field validation was successful
- } else {
- // Validation error occurred
- }
- }
- return true
- }
-
-}
diff --git a/ValidatorTests/Info.plist b/ValidatorTests/Info.plist
deleted file mode 100644
index ba72822..0000000
--- a/ValidatorTests/Info.plist
+++ /dev/null
@@ -1,24 +0,0 @@
-
-
-
-
- CFBundleDevelopmentRegion
- en
- CFBundleExecutable
- $(EXECUTABLE_NAME)
- CFBundleIdentifier
- $(PRODUCT_BUNDLE_IDENTIFIER)
- CFBundleInfoDictionaryVersion
- 6.0
- CFBundleName
- $(PRODUCT_NAME)
- CFBundlePackageType
- BNDL
- CFBundleShortVersionString
- 1.0
- CFBundleSignature
- ????
- CFBundleVersion
- 1
-
-
diff --git a/docs/css/highlight.css b/css/highlight.css
similarity index 100%
rename from docs/css/highlight.css
rename to css/highlight.css
diff --git a/docs/css/jazzy.css b/css/jazzy.css
similarity index 100%
rename from docs/css/jazzy.css
rename to css/jazzy.css
diff --git a/docs/docsets/SwiftValidator.docset/Contents/Info.plist b/docsets/SwiftValidator.docset/Contents/Info.plist
similarity index 100%
rename from docs/docsets/SwiftValidator.docset/Contents/Info.plist
rename to docsets/SwiftValidator.docset/Contents/Info.plist
diff --git a/docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes.html b/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes.html
similarity index 100%
rename from docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes.html
rename to docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes.html
diff --git a/docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/AlphaNumericRule.html b/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/AlphaNumericRule.html
similarity index 100%
rename from docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/AlphaNumericRule.html
rename to docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/AlphaNumericRule.html
diff --git a/docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/AlphaRule.html b/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/AlphaRule.html
similarity index 100%
rename from docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/AlphaRule.html
rename to docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/AlphaRule.html
diff --git a/docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/CharacterSetRule.html b/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/CharacterSetRule.html
similarity index 100%
rename from docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/CharacterSetRule.html
rename to docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/CharacterSetRule.html
diff --git a/docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/ConfirmationRule.html b/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/ConfirmationRule.html
similarity index 100%
rename from docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/ConfirmationRule.html
rename to docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/ConfirmationRule.html
diff --git a/docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/EmailRule.html b/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/EmailRule.html
similarity index 100%
rename from docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/EmailRule.html
rename to docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/EmailRule.html
diff --git a/docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/ExactLengthRule.html b/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/ExactLengthRule.html
similarity index 100%
rename from docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/ExactLengthRule.html
rename to docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/ExactLengthRule.html
diff --git a/docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/FloatRule.html b/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/FloatRule.html
similarity index 100%
rename from docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/FloatRule.html
rename to docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/FloatRule.html
diff --git a/docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/FullNameRule.html b/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/FullNameRule.html
similarity index 100%
rename from docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/FullNameRule.html
rename to docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/FullNameRule.html
diff --git a/docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/HexColorRule.html b/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/HexColorRule.html
similarity index 100%
rename from docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/HexColorRule.html
rename to docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/HexColorRule.html
diff --git a/docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/IPV4Rule.html b/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/IPV4Rule.html
similarity index 100%
rename from docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/IPV4Rule.html
rename to docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/IPV4Rule.html
diff --git a/docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/ISBNRule.html b/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/ISBNRule.html
similarity index 100%
rename from docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/ISBNRule.html
rename to docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/ISBNRule.html
diff --git a/docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/MaxLengthRule.html b/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/MaxLengthRule.html
similarity index 100%
rename from docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/MaxLengthRule.html
rename to docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/MaxLengthRule.html
diff --git a/docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/MinLengthRule.html b/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/MinLengthRule.html
similarity index 100%
rename from docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/MinLengthRule.html
rename to docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/MinLengthRule.html
diff --git a/docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/PasswordRule.html b/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/PasswordRule.html
similarity index 100%
rename from docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/PasswordRule.html
rename to docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/PasswordRule.html
diff --git a/docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/PhoneNumberRule.html b/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/PhoneNumberRule.html
similarity index 100%
rename from docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/PhoneNumberRule.html
rename to docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/PhoneNumberRule.html
diff --git a/docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/RegexRule.html b/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/RegexRule.html
similarity index 100%
rename from docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/RegexRule.html
rename to docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/RegexRule.html
diff --git a/docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/RequiredRule.html b/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/RequiredRule.html
similarity index 100%
rename from docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/RequiredRule.html
rename to docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/RequiredRule.html
diff --git a/docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/ValidationError.html b/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/ValidationError.html
similarity index 100%
rename from docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/ValidationError.html
rename to docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/ValidationError.html
diff --git a/docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/ValidationRule.html b/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/ValidationRule.html
similarity index 100%
rename from docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/ValidationRule.html
rename to docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/ValidationRule.html
diff --git a/docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/Validator.html b/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/Validator.html
similarity index 100%
rename from docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/Validator.html
rename to docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/Validator.html
diff --git a/docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/ZipCodeRule.html b/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/ZipCodeRule.html
similarity index 100%
rename from docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/ZipCodeRule.html
rename to docsets/SwiftValidator.docset/Contents/Resources/Documents/Classes/ZipCodeRule.html
diff --git a/docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/Protocols.html b/docsets/SwiftValidator.docset/Contents/Resources/Documents/Protocols.html
similarity index 100%
rename from docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/Protocols.html
rename to docsets/SwiftValidator.docset/Contents/Resources/Documents/Protocols.html
diff --git a/docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/Protocols/Rule.html b/docsets/SwiftValidator.docset/Contents/Resources/Documents/Protocols/Rule.html
similarity index 100%
rename from docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/Protocols/Rule.html
rename to docsets/SwiftValidator.docset/Contents/Resources/Documents/Protocols/Rule.html
diff --git a/docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/Protocols/ValidationDelegate.html b/docsets/SwiftValidator.docset/Contents/Resources/Documents/Protocols/ValidationDelegate.html
similarity index 100%
rename from docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/Protocols/ValidationDelegate.html
rename to docsets/SwiftValidator.docset/Contents/Resources/Documents/Protocols/ValidationDelegate.html
diff --git a/docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/css/highlight.css b/docsets/SwiftValidator.docset/Contents/Resources/Documents/css/highlight.css
similarity index 100%
rename from docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/css/highlight.css
rename to docsets/SwiftValidator.docset/Contents/Resources/Documents/css/highlight.css
diff --git a/docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/css/jazzy.css b/docsets/SwiftValidator.docset/Contents/Resources/Documents/css/jazzy.css
similarity index 100%
rename from docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/css/jazzy.css
rename to docsets/SwiftValidator.docset/Contents/Resources/Documents/css/jazzy.css
diff --git a/docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/img/carat.png b/docsets/SwiftValidator.docset/Contents/Resources/Documents/img/carat.png
similarity index 100%
rename from docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/img/carat.png
rename to docsets/SwiftValidator.docset/Contents/Resources/Documents/img/carat.png
diff --git a/docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/img/dash.png b/docsets/SwiftValidator.docset/Contents/Resources/Documents/img/dash.png
similarity index 100%
rename from docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/img/dash.png
rename to docsets/SwiftValidator.docset/Contents/Resources/Documents/img/dash.png
diff --git a/docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/img/gh.png b/docsets/SwiftValidator.docset/Contents/Resources/Documents/img/gh.png
similarity index 100%
rename from docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/img/gh.png
rename to docsets/SwiftValidator.docset/Contents/Resources/Documents/img/gh.png
diff --git a/docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/index.html b/docsets/SwiftValidator.docset/Contents/Resources/Documents/index.html
similarity index 100%
rename from docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/index.html
rename to docsets/SwiftValidator.docset/Contents/Resources/Documents/index.html
diff --git a/docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/js/jazzy.js b/docsets/SwiftValidator.docset/Contents/Resources/Documents/js/jazzy.js
similarity index 100%
rename from docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/js/jazzy.js
rename to docsets/SwiftValidator.docset/Contents/Resources/Documents/js/jazzy.js
diff --git a/docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/js/jquery.min.js b/docsets/SwiftValidator.docset/Contents/Resources/Documents/js/jquery.min.js
similarity index 100%
rename from docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/js/jquery.min.js
rename to docsets/SwiftValidator.docset/Contents/Resources/Documents/js/jquery.min.js
diff --git a/docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/undocumented.txt b/docsets/SwiftValidator.docset/Contents/Resources/Documents/undocumented.txt
similarity index 100%
rename from docs/docsets/SwiftValidator.docset/Contents/Resources/Documents/undocumented.txt
rename to docsets/SwiftValidator.docset/Contents/Resources/Documents/undocumented.txt
diff --git a/docs/docsets/SwiftValidator.docset/Contents/Resources/docSet.dsidx b/docsets/SwiftValidator.docset/Contents/Resources/docSet.dsidx
similarity index 100%
rename from docs/docsets/SwiftValidator.docset/Contents/Resources/docSet.dsidx
rename to docsets/SwiftValidator.docset/Contents/Resources/docSet.dsidx
diff --git a/docs/docsets/SwiftValidator.tgz b/docsets/SwiftValidator.tgz
similarity index 100%
rename from docs/docsets/SwiftValidator.tgz
rename to docsets/SwiftValidator.tgz
diff --git a/docs/img/carat.png b/img/carat.png
similarity index 100%
rename from docs/img/carat.png
rename to img/carat.png
diff --git a/docs/img/dash.png b/img/dash.png
similarity index 100%
rename from docs/img/dash.png
rename to img/dash.png
diff --git a/docs/img/gh.png b/img/gh.png
similarity index 100%
rename from docs/img/gh.png
rename to img/gh.png
diff --git a/docs/index.html b/index.html
similarity index 99%
rename from docs/index.html
rename to index.html
index 6aefe33..58bb2d1 100644
--- a/docs/index.html
+++ b/index.html
@@ -117,7 +117,7 @@
Swift Validator is a rule-based validation library for Swift.
-
+
Core Concepts
diff --git a/docs/js/jazzy.js b/js/jazzy.js
similarity index 100%
rename from docs/js/jazzy.js
rename to js/jazzy.js
diff --git a/docs/js/jquery.min.js b/js/jquery.min.js
similarity index 100%
rename from docs/js/jquery.min.js
rename to js/jquery.min.js
diff --git a/swift-validator-v2.gif b/swift-validator-v2.gif
deleted file mode 100644
index f213012..0000000
Binary files a/swift-validator-v2.gif and /dev/null differ
diff --git a/docs/undocumented.txt b/undocumented.txt
similarity index 100%
rename from docs/undocumented.txt
rename to undocumented.txt