diff --git a/Poll Project 2.zip b/Poll Project 2.zip new file mode 100644 index 0000000..4e37d29 Binary files /dev/null and b/Poll Project 2.zip differ diff --git a/Poll/Poll Project.xcodeproj/project.pbxproj b/Poll/Poll Project.xcodeproj/project.pbxproj new file mode 100644 index 0000000..70e016e --- /dev/null +++ b/Poll/Poll Project.xcodeproj/project.pbxproj @@ -0,0 +1,389 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 50; + objects = { + +/* Begin PBXBuildFile section */ + D11EFE73226EA257000C03F2 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = D11EFE72226EA257000C03F2 /* AppDelegate.swift */; }; + D11EFE75226EA257000C03F2 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = D11EFE74226EA257000C03F2 /* ViewController.swift */; }; + D11EFE78226EA257000C03F2 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = D11EFE76226EA257000C03F2 /* Main.storyboard */; }; + D11EFE7A226EA257000C03F2 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = D11EFE79226EA257000C03F2 /* Assets.xcassets */; }; + D11EFE7D226EA257000C03F2 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = D11EFE7B226EA257000C03F2 /* LaunchScreen.storyboard */; }; + D11EFE85226EA26F000C03F2 /* Vote.swift in Sources */ = {isa = PBXBuildFile; fileRef = D11EFE84226EA26F000C03F2 /* Vote.swift */; }; + D11EFE87226EA2D7000C03F2 /* VoteController.swift in Sources */ = {isa = PBXBuildFile; fileRef = D11EFE86226EA2D7000C03F2 /* VoteController.swift */; }; + D11EFE89226EA35C000C03F2 /* Voting.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = D11EFE88226EA35C000C03F2 /* Voting.storyboard */; }; + D11EFE8B226EA429000C03F2 /* VotingViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = D11EFE8A226EA429000C03F2 /* VotingViewController.swift */; }; + D11EFE8D226EA566000C03F2 /* Results.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = D11EFE8C226EA566000C03F2 /* Results.storyboard */; }; + D11EFE8F226EA5E5000C03F2 /* ResultsTableViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = D11EFE8E226EA5E5000C03F2 /* ResultsTableViewController.swift */; }; + D11EFE91226EA616000C03F2 /* Combined.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = D11EFE90226EA616000C03F2 /* Combined.storyboard */; }; + D11EFE93226EA732000C03F2 /* CombinedViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = D11EFE92226EA732000C03F2 /* CombinedViewController.swift */; }; + D11EFE95226ECA6E000C03F2 /* PollingTabBarViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = D11EFE94226ECA6E000C03F2 /* PollingTabBarViewController.swift */; }; + D11EFE98226ED929000C03F2 /* VoteControllerProtocol.swift in Sources */ = {isa = PBXBuildFile; fileRef = D11EFE97226ED929000C03F2 /* VoteControllerProtocol.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + D11EFE6F226EA257000C03F2 /* Poll Project.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Poll Project.app"; sourceTree = BUILT_PRODUCTS_DIR; }; + D11EFE72226EA257000C03F2 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + D11EFE74226EA257000C03F2 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; + D11EFE77226EA257000C03F2 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + D11EFE79226EA257000C03F2 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + D11EFE7C226EA257000C03F2 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + D11EFE7E226EA257000C03F2 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + D11EFE84226EA26F000C03F2 /* Vote.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Vote.swift; sourceTree = ""; }; + D11EFE86226EA2D7000C03F2 /* VoteController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VoteController.swift; sourceTree = ""; }; + D11EFE88226EA35C000C03F2 /* Voting.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = Voting.storyboard; sourceTree = ""; }; + D11EFE8A226EA429000C03F2 /* VotingViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VotingViewController.swift; sourceTree = ""; }; + D11EFE8C226EA566000C03F2 /* Results.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = Results.storyboard; sourceTree = ""; }; + D11EFE8E226EA5E5000C03F2 /* ResultsTableViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ResultsTableViewController.swift; sourceTree = ""; }; + D11EFE90226EA616000C03F2 /* Combined.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = Combined.storyboard; sourceTree = ""; }; + D11EFE92226EA732000C03F2 /* CombinedViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CombinedViewController.swift; sourceTree = ""; }; + D11EFE94226ECA6E000C03F2 /* PollingTabBarViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PollingTabBarViewController.swift; sourceTree = ""; }; + D11EFE97226ED929000C03F2 /* VoteControllerProtocol.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VoteControllerProtocol.swift; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + D11EFE6C226EA257000C03F2 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + D11EFE66226EA257000C03F2 = { + isa = PBXGroup; + children = ( + D11EFE71226EA257000C03F2 /* Poll Project */, + D11EFE70226EA257000C03F2 /* Products */, + ); + sourceTree = ""; + }; + D11EFE70226EA257000C03F2 /* Products */ = { + isa = PBXGroup; + children = ( + D11EFE6F226EA257000C03F2 /* Poll Project.app */, + ); + name = Products; + sourceTree = ""; + }; + D11EFE71226EA257000C03F2 /* Poll Project */ = { + isa = PBXGroup; + children = ( + D11EFE72226EA257000C03F2 /* AppDelegate.swift */, + D11EFE74226EA257000C03F2 /* ViewController.swift */, + D11EFE79226EA257000C03F2 /* Assets.xcassets */, + D11EFE7E226EA257000C03F2 /* Info.plist */, + D11EFE84226EA26F000C03F2 /* Vote.swift */, + D11EFE86226EA2D7000C03F2 /* VoteController.swift */, + D11EFE96226ED4A8000C03F2 /* Storyboards */, + D11EFE8A226EA429000C03F2 /* VotingViewController.swift */, + D11EFE8E226EA5E5000C03F2 /* ResultsTableViewController.swift */, + D11EFE92226EA732000C03F2 /* CombinedViewController.swift */, + D11EFE94226ECA6E000C03F2 /* PollingTabBarViewController.swift */, + D11EFE97226ED929000C03F2 /* VoteControllerProtocol.swift */, + ); + path = "Poll Project"; + sourceTree = ""; + }; + D11EFE96226ED4A8000C03F2 /* Storyboards */ = { + isa = PBXGroup; + children = ( + D11EFE90226EA616000C03F2 /* Combined.storyboard */, + D11EFE76226EA257000C03F2 /* Main.storyboard */, + D11EFE8C226EA566000C03F2 /* Results.storyboard */, + D11EFE88226EA35C000C03F2 /* Voting.storyboard */, + D11EFE7B226EA257000C03F2 /* LaunchScreen.storyboard */, + ); + path = Storyboards; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + D11EFE6E226EA257000C03F2 /* Poll Project */ = { + isa = PBXNativeTarget; + buildConfigurationList = D11EFE81226EA257000C03F2 /* Build configuration list for PBXNativeTarget "Poll Project" */; + buildPhases = ( + D11EFE6B226EA257000C03F2 /* Sources */, + D11EFE6C226EA257000C03F2 /* Frameworks */, + D11EFE6D226EA257000C03F2 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = "Poll Project"; + productName = "Poll Project"; + productReference = D11EFE6F226EA257000C03F2 /* Poll Project.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + D11EFE67226EA257000C03F2 /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 1020; + LastUpgradeCheck = 1020; + ORGANIZATIONNAME = "Jonathan Ferrer"; + TargetAttributes = { + D11EFE6E226EA257000C03F2 = { + CreatedOnToolsVersion = 10.2.1; + }; + }; + }; + buildConfigurationList = D11EFE6A226EA257000C03F2 /* Build configuration list for PBXProject "Poll Project" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = D11EFE66226EA257000C03F2; + productRefGroup = D11EFE70226EA257000C03F2 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + D11EFE6E226EA257000C03F2 /* Poll Project */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + D11EFE6D226EA257000C03F2 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + D11EFE7D226EA257000C03F2 /* LaunchScreen.storyboard in Resources */, + D11EFE8D226EA566000C03F2 /* Results.storyboard in Resources */, + D11EFE7A226EA257000C03F2 /* Assets.xcassets in Resources */, + D11EFE78226EA257000C03F2 /* Main.storyboard in Resources */, + D11EFE89226EA35C000C03F2 /* Voting.storyboard in Resources */, + D11EFE91226EA616000C03F2 /* Combined.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + D11EFE6B226EA257000C03F2 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + D11EFE8F226EA5E5000C03F2 /* ResultsTableViewController.swift in Sources */, + D11EFE75226EA257000C03F2 /* ViewController.swift in Sources */, + D11EFE98226ED929000C03F2 /* VoteControllerProtocol.swift in Sources */, + D11EFE93226EA732000C03F2 /* CombinedViewController.swift in Sources */, + D11EFE87226EA2D7000C03F2 /* VoteController.swift in Sources */, + D11EFE95226ECA6E000C03F2 /* PollingTabBarViewController.swift in Sources */, + D11EFE85226EA26F000C03F2 /* Vote.swift in Sources */, + D11EFE73226EA257000C03F2 /* AppDelegate.swift in Sources */, + D11EFE8B226EA429000C03F2 /* VotingViewController.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + D11EFE76226EA257000C03F2 /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + D11EFE77226EA257000C03F2 /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + D11EFE7B226EA257000C03F2 /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + D11EFE7C226EA257000C03F2 /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + D11EFE7F226EA257000C03F2 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = 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_DOCUMENTATION_COMMENTS = YES; + 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_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + 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 = 12.2; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + D11EFE80226EA257000C03F2 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = 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_DOCUMENTATION_COMMENTS = YES; + 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_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + 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 = 12.2; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + D11EFE82226EA257000C03F2 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = F2KHAE3YT5; + INFOPLIST_FILE = "Poll Project/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = "com.jonathanferrer.Poll-Project"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + D11EFE83226EA257000C03F2 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = F2KHAE3YT5; + INFOPLIST_FILE = "Poll Project/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = "com.jonathanferrer.Poll-Project"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + D11EFE6A226EA257000C03F2 /* Build configuration list for PBXProject "Poll Project" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + D11EFE7F226EA257000C03F2 /* Debug */, + D11EFE80226EA257000C03F2 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + D11EFE81226EA257000C03F2 /* Build configuration list for PBXNativeTarget "Poll Project" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + D11EFE82226EA257000C03F2 /* Debug */, + D11EFE83226EA257000C03F2 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = D11EFE67226EA257000C03F2 /* Project object */; +} diff --git a/Poll/Poll Project.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Poll/Poll Project.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..8b7387a --- /dev/null +++ b/Poll/Poll Project.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/Poll/Poll Project.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/Poll/Poll Project.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/Poll/Poll Project.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/Poll/Poll Project.xcodeproj/project.xcworkspace/xcuserdata/JayFenam.xcuserdatad/UserInterfaceState.xcuserstate b/Poll/Poll Project.xcodeproj/project.xcworkspace/xcuserdata/JayFenam.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000..79cba71 Binary files /dev/null and b/Poll/Poll Project.xcodeproj/project.xcworkspace/xcuserdata/JayFenam.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/Poll/Poll Project.xcodeproj/xcuserdata/JayFenam.xcuserdatad/xcschemes/xcschememanagement.plist b/Poll/Poll Project.xcodeproj/xcuserdata/JayFenam.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..f7e0087 --- /dev/null +++ b/Poll/Poll Project.xcodeproj/xcuserdata/JayFenam.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,14 @@ + + + + + SchemeUserState + + Poll Project.xcscheme_^#shared#^_ + + orderHint + 0 + + + + diff --git a/Poll/Poll Project/AppDelegate.swift b/Poll/Poll Project/AppDelegate.swift new file mode 100644 index 0000000..7d50803 --- /dev/null +++ b/Poll/Poll Project/AppDelegate.swift @@ -0,0 +1,46 @@ +// +// AppDelegate.swift +// Poll Project +// +// Created by Jonathan Ferrer on 4/22/19. +// Copyright © 2019 Jonathan Ferrer. All rights reserved. +// + +import UIKit + +@UIApplicationMain +class AppDelegate: UIResponder, UIApplicationDelegate { + + var window: UIWindow? + + + func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { + // Override point for customization after application launch. + return true + } + + func applicationWillResignActive(_ application: UIApplication) { + // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. + // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. + } + + func applicationDidEnterBackground(_ application: UIApplication) { + // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. + // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. + } + + func applicationWillEnterForeground(_ application: UIApplication) { + // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. + } + + func applicationDidBecomeActive(_ application: UIApplication) { + // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. + } + + func applicationWillTerminate(_ application: UIApplication) { + // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. + } + + +} + diff --git a/Poll/Poll Project/Assets.xcassets/AppIcon.appiconset/Contents.json b/Poll/Poll Project/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..d8db8d6 --- /dev/null +++ b/Poll/Poll Project/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,98 @@ +{ + "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" + }, + { + "idiom" : "ipad", + "size" : "20x20", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "20x20", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "83.5x83.5", + "scale" : "2x" + }, + { + "idiom" : "ios-marketing", + "size" : "1024x1024", + "scale" : "1x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Poll/Poll Project/Assets.xcassets/Contents.json b/Poll/Poll Project/Assets.xcassets/Contents.json new file mode 100644 index 0000000..da4a164 --- /dev/null +++ b/Poll/Poll Project/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Poll/Poll Project/CombinedViewController.swift b/Poll/Poll Project/CombinedViewController.swift new file mode 100644 index 0000000..fbcb968 --- /dev/null +++ b/Poll/Poll Project/CombinedViewController.swift @@ -0,0 +1,30 @@ +// +// CombinedViewController.swift +// Poll Project +// +// Created by Jonathan Ferrer on 4/22/19. +// Copyright © 2019 Jonathan Ferrer. All rights reserved. +// + +import UIKit + +class CombinedViewController: UIViewController { + + override func viewDidLoad() { + super.viewDidLoad() + + // Do any additional setup after loading the view. + } + + + /* + // MARK: - Navigation + + // In a storyboard-based application, you will often want to do a little preparation before navigation + override func prepare(for segue: UIStoryboardSegue, sender: Any?) { + // Get the new view controller using segue.destination. + // Pass the selected object to the new view controller. + } + */ + +} diff --git a/Poll/Poll Project/Info.plist b/Poll/Poll Project/Info.plist new file mode 100644 index 0000000..16be3b6 --- /dev/null +++ b/Poll/Poll Project/Info.plist @@ -0,0 +1,45 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/Poll/Poll Project/PollingTabBarViewController.swift b/Poll/Poll Project/PollingTabBarViewController.swift new file mode 100644 index 0000000..8c9fe5c --- /dev/null +++ b/Poll/Poll Project/PollingTabBarViewController.swift @@ -0,0 +1,44 @@ +// +// PollingTabBarViewController.swift +// Poll Project +// +// Created by Jonathan Ferrer on 4/23/19. +// Copyright © 2019 Jonathan Ferrer. All rights reserved. +// + +import UIKit + +class PollingTabBarViewController: UITabBarController { + + + let voteController: VoteController + + + func passVoteToChildViewController(){ + + + + } + + init(voteController: VoteController) { + self.voteController = voteController + } + + override func viewDidLoad() { + super.viewDidLoad() + + // Do any additional setup after loading the view. + } + + + /* + // MARK: - Navigation + + // In a storyboard-based application, you will often want to do a little preparation before navigation + override func prepare(for segue: UIStoryboardSegue, sender: Any?) { + // Get the new view controller using segue.destination. + // Pass the selected object to the new view controller. + } + */ + +} diff --git a/Poll/Poll Project/ResultsTableViewController.swift b/Poll/Poll Project/ResultsTableViewController.swift new file mode 100644 index 0000000..881c3cc --- /dev/null +++ b/Poll/Poll Project/ResultsTableViewController.swift @@ -0,0 +1,90 @@ +// +// ResultsTableViewController.swift +// Poll Project +// +// Created by Jonathan Ferrer on 4/22/19. +// Copyright © 2019 Jonathan Ferrer. All rights reserved. +// + +import UIKit + +class ResultsTableViewController: UITableViewController { + + override func viewDidLoad() { + super.viewDidLoad() + + // Uncomment the following line to preserve selection between presentations + // self.clearsSelectionOnViewWillAppear = false + + // Uncomment the following line to display an Edit button in the navigation bar for this view controller. + // self.navigationItem.rightBarButtonItem = self.editButtonItem + } + + // MARK: - Table view data source + + override func numberOfSections(in tableView: UITableView) -> Int { + // #warning Incomplete implementation, return the number of sections + return 0 + } + + override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { + // #warning Incomplete implementation, return the number of rows + return 0 + } + + /* + override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { + let cell = tableView.dequeueReusableCell(withIdentifier: "reuseIdentifier", for: indexPath) + + // Configure the cell... + + return cell + } + */ + + /* + // Override to support conditional editing of the table view. + override func tableView(_ tableView: UITableView, canEditRowAt indexPath: IndexPath) -> Bool { + // Return false if you do not want the specified item to be editable. + return true + } + */ + + /* + // Override to support editing the table view. + override func tableView(_ tableView: UITableView, commit editingStyle: UITableViewCell.EditingStyle, forRowAt indexPath: IndexPath) { + if editingStyle == .delete { + // Delete the row from the data source + tableView.deleteRows(at: [indexPath], with: .fade) + } else if editingStyle == .insert { + // Create a new instance of the appropriate class, insert it into the array, and add a new row to the table view + } + } + */ + + /* + // Override to support rearranging the table view. + override func tableView(_ tableView: UITableView, moveRowAt fromIndexPath: IndexPath, to: IndexPath) { + + } + */ + + /* + // Override to support conditional rearranging of the table view. + override func tableView(_ tableView: UITableView, canMoveRowAt indexPath: IndexPath) -> Bool { + // Return false if you do not want the item to be re-orderable. + return true + } + */ + + /* + // MARK: - Navigation + + // In a storyboard-based application, you will often want to do a little preparation before navigation + override func prepare(for segue: UIStoryboardSegue, sender: Any?) { + // Get the new view controller using segue.destination. + // Pass the selected object to the new view controller. + } + */ + +} diff --git a/Poll/Poll Project/Storyboards/Base.lproj/LaunchScreen.storyboard b/Poll/Poll Project/Storyboards/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..bfa3612 --- /dev/null +++ b/Poll/Poll Project/Storyboards/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Poll/Poll Project/Storyboards/Base.lproj/Main.storyboard b/Poll/Poll Project/Storyboards/Base.lproj/Main.storyboard new file mode 100644 index 0000000..4fe7d11 --- /dev/null +++ b/Poll/Poll Project/Storyboards/Base.lproj/Main.storyboard @@ -0,0 +1,62 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Poll/Poll Project/Storyboards/Combined.storyboard b/Poll/Poll Project/Storyboards/Combined.storyboard new file mode 100644 index 0000000..7016ead --- /dev/null +++ b/Poll/Poll Project/Storyboards/Combined.storyboard @@ -0,0 +1,63 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Poll/Poll Project/Storyboards/Results.storyboard b/Poll/Poll Project/Storyboards/Results.storyboard new file mode 100644 index 0000000..242d891 --- /dev/null +++ b/Poll/Poll Project/Storyboards/Results.storyboard @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Poll/Poll Project/Storyboards/Voting.storyboard b/Poll/Poll Project/Storyboards/Voting.storyboard new file mode 100644 index 0000000..a135c05 --- /dev/null +++ b/Poll/Poll Project/Storyboards/Voting.storyboard @@ -0,0 +1,68 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Poll/Poll Project/ViewController.swift b/Poll/Poll Project/ViewController.swift new file mode 100644 index 0000000..b5840c2 --- /dev/null +++ b/Poll/Poll Project/ViewController.swift @@ -0,0 +1,20 @@ +// +// ViewController.swift +// Poll Project +// +// Created by Jonathan Ferrer on 4/22/19. +// Copyright © 2019 Jonathan Ferrer. All rights reserved. +// + +import UIKit + +class ViewController: UIViewController { + + override func viewDidLoad() { + super.viewDidLoad() + // Do any additional setup after loading the view. + } + + +} + diff --git a/Poll/Poll Project/Vote.swift b/Poll/Poll Project/Vote.swift new file mode 100644 index 0000000..4e6290b --- /dev/null +++ b/Poll/Poll Project/Vote.swift @@ -0,0 +1,20 @@ +// +// Vote.swift +// Poll +// +// Created by Jonathan Ferrer on 4/22/19. +// Copyright © 2019 Jonathan Ferrer. All rights reserved. +// + +import Foundation + +class Vote{ + let name: String + let response: String + + init(name: String, response: String) { + self.name = name + self.response = response + } + +} diff --git a/Poll/Poll Project/VoteController.swift b/Poll/Poll Project/VoteController.swift new file mode 100644 index 0000000..8722b17 --- /dev/null +++ b/Poll/Poll Project/VoteController.swift @@ -0,0 +1,21 @@ +// +// VoteController.swift +// Poll +// +// Created by Jonathan Ferrer on 4/22/19. +// Copyright © 2019 Jonathan Ferrer. All rights reserved. +// + +import Foundation + +class VoteController{ + var votes : [Vote] = [] + + func createVote(with name: String, response: String){ + let vote = Vote(name: name, response: response) + + votes.append(vote) + + } + +} diff --git a/Poll/Poll Project/VoteControllerProtocol.swift b/Poll/Poll Project/VoteControllerProtocol.swift new file mode 100644 index 0000000..30b9227 --- /dev/null +++ b/Poll/Poll Project/VoteControllerProtocol.swift @@ -0,0 +1,16 @@ +// +// VoteControllerProtocol.swift +// Poll Project +// +// Created by Jonathan Ferrer on 4/23/19. +// Copyright © 2019 Jonathan Ferrer. All rights reserved. +// + +import Foundation +class VoteControllerProtocol{ + + var voteController: VoteController? + + } + + diff --git a/Poll/Poll Project/VotingViewController.swift b/Poll/Poll Project/VotingViewController.swift new file mode 100644 index 0000000..9f5ab57 --- /dev/null +++ b/Poll/Poll Project/VotingViewController.swift @@ -0,0 +1,35 @@ +// +// VotingViewController.swift +// Poll Project +// +// Created by Jonathan Ferrer on 4/22/19. +// Copyright © 2019 Jonathan Ferrer. All rights reserved. +// + +import UIKit + +class VotingViewController: UIViewController { + @IBOutlet weak var nameTextField: UITextField! + @IBOutlet weak var responseTextField: UITextField! + + override func viewDidLoad() { + super.viewDidLoad() + + // Do any additional setup after loading the view. + } + + @IBAction func submitButtonPressed(_ sender: Any) { + } + + + /* + // MARK: - Navigation + + // In a storyboard-based application, you will often want to do a little preparation before navigation + override func prepare(for segue: UIStoryboardSegue, sender: Any?) { + // Get the new view controller using segue.destination. + // Pass the selected object to the new view controller. + } + */ + +}