From 6c8481236c471bd1950c5ea55495133c938b9672 Mon Sep 17 00:00:00 2001 From: James Date: Mon, 1 Feb 2021 21:26:09 -0600 Subject: [PATCH 1/2] Part 1 complete --- Gigs/Gigs.xcodeproj/project.pbxproj | 422 ++++++++++++++++++ .../contents.xcworkspacedata | 7 + .../xcshareddata/IDEWorkspaceChecks.plist | 8 + Gigs/Gigs/App Resources/AppDelegate.swift | 36 ++ .../AccentColor.colorset/Contents.json | 11 + .../AppIcon.appiconset/Contents.json | 98 ++++ .../Assets.xcassets/Contents.json | 6 + Gigs/Gigs/App Resources/SceneDelegate.swift | 52 +++ .../GigsTableViewController.swift | 89 ++++ .../SignInViewController.swift | 31 ++ Gigs/Gigs/Info.plist | 66 +++ .../Launch/Base.lproj/LaunchScreen.storyboard | 32 ++ .../Main/Base.lproj/Main.storyboard | 166 +++++++ 13 files changed, 1024 insertions(+) create mode 100644 Gigs/Gigs.xcodeproj/project.pbxproj create mode 100644 Gigs/Gigs.xcodeproj/project.xcworkspace/contents.xcworkspacedata create mode 100644 Gigs/Gigs.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist create mode 100644 Gigs/Gigs/App Resources/AppDelegate.swift create mode 100644 Gigs/Gigs/App Resources/Assets.xcassets/AccentColor.colorset/Contents.json create mode 100644 Gigs/Gigs/App Resources/Assets.xcassets/AppIcon.appiconset/Contents.json create mode 100644 Gigs/Gigs/App Resources/Assets.xcassets/Contents.json create mode 100644 Gigs/Gigs/App Resources/SceneDelegate.swift create mode 100644 Gigs/Gigs/Controllers/ViewControllers/GigsTableViewController.swift create mode 100644 Gigs/Gigs/Controllers/ViewControllers/SignInViewController.swift create mode 100644 Gigs/Gigs/Info.plist create mode 100644 Gigs/Gigs/Views/Storyboards/Launch/Base.lproj/LaunchScreen.storyboard create mode 100644 Gigs/Gigs/Views/Storyboards/Main/Base.lproj/Main.storyboard diff --git a/Gigs/Gigs.xcodeproj/project.pbxproj b/Gigs/Gigs.xcodeproj/project.pbxproj new file mode 100644 index 00000000..d181b662 --- /dev/null +++ b/Gigs/Gigs.xcodeproj/project.pbxproj @@ -0,0 +1,422 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 50; + objects = { + +/* Begin PBXBuildFile section */ + A8081B8F25C8F3D400B91D5A /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = A8081B8E25C8F3D400B91D5A /* AppDelegate.swift */; }; + A8081B9125C8F3D500B91D5A /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = A8081B9025C8F3D500B91D5A /* SceneDelegate.swift */; }; + A8081B9625C8F3D500B91D5A /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = A8081B9425C8F3D500B91D5A /* Main.storyboard */; }; + A8081B9825C8F3DB00B91D5A /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = A8081B9725C8F3DB00B91D5A /* Assets.xcassets */; }; + A8081B9B25C8F3DB00B91D5A /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = A8081B9925C8F3DB00B91D5A /* LaunchScreen.storyboard */; }; + A8081BAF25C8F8D000B91D5A /* GigsTableViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A8081BAE25C8F8D000B91D5A /* GigsTableViewController.swift */; }; + A8081BB225C8F92E00B91D5A /* SignInViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A8081BB125C8F92E00B91D5A /* SignInViewController.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + A8081B8B25C8F3D400B91D5A /* Gigs.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Gigs.app; sourceTree = BUILT_PRODUCTS_DIR; }; + A8081B8E25C8F3D400B91D5A /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + A8081B9025C8F3D500B91D5A /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = ""; }; + A8081B9525C8F3D500B91D5A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + A8081B9725C8F3DB00B91D5A /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + A8081B9A25C8F3DB00B91D5A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + A8081B9C25C8F3DB00B91D5A /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + A8081BAE25C8F8D000B91D5A /* GigsTableViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GigsTableViewController.swift; sourceTree = ""; }; + A8081BB125C8F92E00B91D5A /* SignInViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SignInViewController.swift; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + A8081B8825C8F3D400B91D5A /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + A8081B8225C8F3D400B91D5A = { + isa = PBXGroup; + children = ( + A8081B8D25C8F3D400B91D5A /* Gigs */, + A8081B8C25C8F3D400B91D5A /* Products */, + ); + sourceTree = ""; + }; + A8081B8C25C8F3D400B91D5A /* Products */ = { + isa = PBXGroup; + children = ( + A8081B8B25C8F3D400B91D5A /* Gigs.app */, + ); + name = Products; + sourceTree = ""; + }; + A8081B8D25C8F3D400B91D5A /* Gigs */ = { + isa = PBXGroup; + children = ( + A8081BAA25C8F75900B91D5A /* App Resources */, + A8081BA525C8F6A500B91D5A /* Models */, + A8081BA425C8F6A200B91D5A /* Views */, + A8081BA325C8F69E00B91D5A /* Controllers */, + A8081B9C25C8F3DB00B91D5A /* Info.plist */, + ); + path = Gigs; + sourceTree = ""; + }; + A8081BA325C8F69E00B91D5A /* Controllers */ = { + isa = PBXGroup; + children = ( + A8081BA825C8F74000B91D5A /* ModelControllers */, + A8081BA725C8F73700B91D5A /* ViewControllers */, + ); + path = Controllers; + sourceTree = ""; + }; + A8081BA425C8F6A200B91D5A /* Views */ = { + isa = PBXGroup; + children = ( + A8081BA625C8F6B200B91D5A /* Storyboards */, + ); + path = Views; + sourceTree = ""; + }; + A8081BA525C8F6A500B91D5A /* Models */ = { + isa = PBXGroup; + children = ( + ); + path = Models; + sourceTree = ""; + }; + A8081BA625C8F6B200B91D5A /* Storyboards */ = { + isa = PBXGroup; + children = ( + A8081BAC25C8F76F00B91D5A /* Launch */, + A8081BAB25C8F76700B91D5A /* Main */, + ); + path = Storyboards; + sourceTree = ""; + }; + A8081BA725C8F73700B91D5A /* ViewControllers */ = { + isa = PBXGroup; + children = ( + A8081BAE25C8F8D000B91D5A /* GigsTableViewController.swift */, + A8081BB125C8F92E00B91D5A /* SignInViewController.swift */, + ); + path = ViewControllers; + sourceTree = ""; + }; + A8081BA825C8F74000B91D5A /* ModelControllers */ = { + isa = PBXGroup; + children = ( + ); + path = ModelControllers; + sourceTree = ""; + }; + A8081BAA25C8F75900B91D5A /* App Resources */ = { + isa = PBXGroup; + children = ( + A8081B8E25C8F3D400B91D5A /* AppDelegate.swift */, + A8081B9025C8F3D500B91D5A /* SceneDelegate.swift */, + A8081B9725C8F3DB00B91D5A /* Assets.xcassets */, + ); + path = "App Resources"; + sourceTree = ""; + }; + A8081BAB25C8F76700B91D5A /* Main */ = { + isa = PBXGroup; + children = ( + A8081B9425C8F3D500B91D5A /* Main.storyboard */, + ); + path = Main; + sourceTree = ""; + }; + A8081BAC25C8F76F00B91D5A /* Launch */ = { + isa = PBXGroup; + children = ( + A8081B9925C8F3DB00B91D5A /* LaunchScreen.storyboard */, + ); + path = Launch; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + A8081B8A25C8F3D400B91D5A /* Gigs */ = { + isa = PBXNativeTarget; + buildConfigurationList = A8081B9F25C8F3DB00B91D5A /* Build configuration list for PBXNativeTarget "Gigs" */; + buildPhases = ( + A8081B8725C8F3D400B91D5A /* Sources */, + A8081B8825C8F3D400B91D5A /* Frameworks */, + A8081B8925C8F3D400B91D5A /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = Gigs; + productName = Gigs; + productReference = A8081B8B25C8F3D400B91D5A /* Gigs.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + A8081B8325C8F3D400B91D5A /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 1230; + LastUpgradeCheck = 1230; + TargetAttributes = { + A8081B8A25C8F3D400B91D5A = { + CreatedOnToolsVersion = 12.3; + }; + }; + }; + buildConfigurationList = A8081B8625C8F3D400B91D5A /* Build configuration list for PBXProject "Gigs" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = A8081B8225C8F3D400B91D5A; + productRefGroup = A8081B8C25C8F3D400B91D5A /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + A8081B8A25C8F3D400B91D5A /* Gigs */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + A8081B8925C8F3D400B91D5A /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + A8081B9B25C8F3DB00B91D5A /* LaunchScreen.storyboard in Resources */, + A8081B9825C8F3DB00B91D5A /* Assets.xcassets in Resources */, + A8081B9625C8F3D500B91D5A /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + A8081B8725C8F3D400B91D5A /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + A8081BB225C8F92E00B91D5A /* SignInViewController.swift in Sources */, + A8081B8F25C8F3D400B91D5A /* AppDelegate.swift in Sources */, + A8081B9125C8F3D500B91D5A /* SceneDelegate.swift in Sources */, + A8081BAF25C8F8D000B91D5A /* GigsTableViewController.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + A8081B9425C8F3D500B91D5A /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + A8081B9525C8F3D500B91D5A /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + A8081B9925C8F3DB00B91D5A /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + A8081B9A25C8F3DB00B91D5A /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + A8081B9D25C8F3DB00B91D5A /* 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_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + 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; + 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 = 14.3; + 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; + }; + A8081B9E25C8F3DB00B91D5A /* 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_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + 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; + 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 = 14.3; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + A8081BA025C8F3DB00B91D5A /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = VXUQXR6S56; + INFOPLIST_FILE = Gigs/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.Gigs.Gigs; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + A8081BA125C8F3DB00B91D5A /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = VXUQXR6S56; + INFOPLIST_FILE = Gigs/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.Gigs.Gigs; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + A8081B8625C8F3D400B91D5A /* Build configuration list for PBXProject "Gigs" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + A8081B9D25C8F3DB00B91D5A /* Debug */, + A8081B9E25C8F3DB00B91D5A /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + A8081B9F25C8F3DB00B91D5A /* Build configuration list for PBXNativeTarget "Gigs" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + A8081BA025C8F3DB00B91D5A /* Debug */, + A8081BA125C8F3DB00B91D5A /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = A8081B8325C8F3D400B91D5A /* Project object */; +} diff --git a/Gigs/Gigs.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Gigs/Gigs.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 00000000..919434a6 --- /dev/null +++ b/Gigs/Gigs.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/Gigs/Gigs.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/Gigs/Gigs.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 00000000..18d98100 --- /dev/null +++ b/Gigs/Gigs.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/Gigs/Gigs/App Resources/AppDelegate.swift b/Gigs/Gigs/App Resources/AppDelegate.swift new file mode 100644 index 00000000..3b003448 --- /dev/null +++ b/Gigs/Gigs/App Resources/AppDelegate.swift @@ -0,0 +1,36 @@ +// +// AppDelegate.swift +// Gigs +// +// Created by James McDougall on 2/1/21. +// + +import UIKit + +@main +class AppDelegate: UIResponder, UIApplicationDelegate { + + + + func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { + // Override point for customization after application launch. + return true + } + + // MARK: UISceneSession Lifecycle + + func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration { + // Called when a new scene session is being created. + // Use this method to select a configuration to create the new scene with. + return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role) + } + + func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set) { + // Called when the user discards a scene session. + // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions. + // Use this method to release any resources that were specific to the discarded scenes, as they will not return. + } + + +} + diff --git a/Gigs/Gigs/App Resources/Assets.xcassets/AccentColor.colorset/Contents.json b/Gigs/Gigs/App Resources/Assets.xcassets/AccentColor.colorset/Contents.json new file mode 100644 index 00000000..eb878970 --- /dev/null +++ b/Gigs/Gigs/App Resources/Assets.xcassets/AccentColor.colorset/Contents.json @@ -0,0 +1,11 @@ +{ + "colors" : [ + { + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Gigs/Gigs/App Resources/Assets.xcassets/AppIcon.appiconset/Contents.json b/Gigs/Gigs/App Resources/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 00000000..9221b9bb --- /dev/null +++ b/Gigs/Gigs/App Resources/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,98 @@ +{ + "images" : [ + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "20x20" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "20x20" + }, + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "29x29" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "29x29" + }, + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "40x40" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "40x40" + }, + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "60x60" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "60x60" + }, + { + "idiom" : "ipad", + "scale" : "1x", + "size" : "20x20" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "20x20" + }, + { + "idiom" : "ipad", + "scale" : "1x", + "size" : "29x29" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "29x29" + }, + { + "idiom" : "ipad", + "scale" : "1x", + "size" : "40x40" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "40x40" + }, + { + "idiom" : "ipad", + "scale" : "1x", + "size" : "76x76" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "76x76" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "83.5x83.5" + }, + { + "idiom" : "ios-marketing", + "scale" : "1x", + "size" : "1024x1024" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Gigs/Gigs/App Resources/Assets.xcassets/Contents.json b/Gigs/Gigs/App Resources/Assets.xcassets/Contents.json new file mode 100644 index 00000000..73c00596 --- /dev/null +++ b/Gigs/Gigs/App Resources/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Gigs/Gigs/App Resources/SceneDelegate.swift b/Gigs/Gigs/App Resources/SceneDelegate.swift new file mode 100644 index 00000000..ff1f9d0a --- /dev/null +++ b/Gigs/Gigs/App Resources/SceneDelegate.swift @@ -0,0 +1,52 @@ +// +// SceneDelegate.swift +// Gigs +// +// Created by James McDougall on 2/1/21. +// + +import UIKit + +class SceneDelegate: UIResponder, UIWindowSceneDelegate { + + var window: UIWindow? + + + func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { + // Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`. + // If using a storyboard, the `window` property will automatically be initialized and attached to the scene. + // This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead). + guard let _ = (scene as? UIWindowScene) else { return } + } + + func sceneDidDisconnect(_ scene: UIScene) { + // Called as the scene is being released by the system. + // This occurs shortly after the scene enters the background, or when its session is discarded. + // Release any resources associated with this scene that can be re-created the next time the scene connects. + // The scene may re-connect later, as its session was not necessarily discarded (see `application:didDiscardSceneSessions` instead). + } + + func sceneDidBecomeActive(_ scene: UIScene) { + // Called when the scene has moved from an inactive state to an active state. + // Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive. + } + + func sceneWillResignActive(_ scene: UIScene) { + // Called when the scene will move from an active state to an inactive state. + // This may occur due to temporary interruptions (ex. an incoming phone call). + } + + func sceneWillEnterForeground(_ scene: UIScene) { + // Called as the scene transitions from the background to the foreground. + // Use this method to undo the changes made on entering the background. + } + + func sceneDidEnterBackground(_ scene: UIScene) { + // Called as the scene transitions from the foreground to the background. + // Use this method to save data, release shared resources, and store enough scene-specific state information + // to restore the scene back to its current state. + } + + +} + diff --git a/Gigs/Gigs/Controllers/ViewControllers/GigsTableViewController.swift b/Gigs/Gigs/Controllers/ViewControllers/GigsTableViewController.swift new file mode 100644 index 00000000..439a8138 --- /dev/null +++ b/Gigs/Gigs/Controllers/ViewControllers/GigsTableViewController.swift @@ -0,0 +1,89 @@ +// +// GigsTableViewController.swift +// Gigs +// +// Created by James McDougall on 2/1/21. +// + +import UIKit + +class GigsTableViewController: 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/Gigs/Gigs/Controllers/ViewControllers/SignInViewController.swift b/Gigs/Gigs/Controllers/ViewControllers/SignInViewController.swift new file mode 100644 index 00000000..4b999007 --- /dev/null +++ b/Gigs/Gigs/Controllers/ViewControllers/SignInViewController.swift @@ -0,0 +1,31 @@ +// +// SignInViewController.swift +// Gigs +// +// Created by James McDougall on 2/1/21. +// + +import UIKit + +class SignInViewController: UIViewController { + + @IBOutlet weak var segmentedControl: UISegmentedControl! + @IBOutlet weak var userNameTextField: UITextField! + @IBOutlet weak var passwordTextField: UITextField! + @IBOutlet weak var signInButton: UIButton! + + override func viewDidLoad() { + super.viewDidLoad() + + // Do any additional setup after loading the view. + } + + @IBAction func segmentedControllerChanged(_ sender: UISegmentedControl) { + } + + @IBAction func signInButtonTapped(_ sender: UIButton) { + + } + + +} diff --git a/Gigs/Gigs/Info.plist b/Gigs/Gigs/Info.plist new file mode 100644 index 00000000..5b531f7b --- /dev/null +++ b/Gigs/Gigs/Info.plist @@ -0,0 +1,66 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + $(PRODUCT_BUNDLE_PACKAGE_TYPE) + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + LSRequiresIPhoneOS + + UIApplicationSceneManifest + + UIApplicationSupportsMultipleScenes + + UISceneConfigurations + + UIWindowSceneSessionRoleApplication + + + UISceneConfigurationName + Default Configuration + UISceneDelegateClassName + $(PRODUCT_MODULE_NAME).SceneDelegate + UISceneStoryboardFile + Main + + + + + UIApplicationSupportsIndirectInputEvents + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/Gigs/Gigs/Views/Storyboards/Launch/Base.lproj/LaunchScreen.storyboard b/Gigs/Gigs/Views/Storyboards/Launch/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 00000000..a348f68a --- /dev/null +++ b/Gigs/Gigs/Views/Storyboards/Launch/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Gigs/Gigs/Views/Storyboards/Main/Base.lproj/Main.storyboard b/Gigs/Gigs/Views/Storyboards/Main/Base.lproj/Main.storyboard new file mode 100644 index 00000000..f83ed085 --- /dev/null +++ b/Gigs/Gigs/Views/Storyboards/Main/Base.lproj/Main.storyboard @@ -0,0 +1,166 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 107893517d18bc7fa21f889a1005c7a8e0eced2b Mon Sep 17 00:00:00 2001 From: James Date: Mon, 1 Feb 2021 21:37:13 -0600 Subject: [PATCH 2/2] Part 2 complete --- Gigs/Gigs.xcodeproj/project.pbxproj | 8 ++++++++ Gigs/Gigs/Models/Bearer.swift | 15 +++++++++++++++ Gigs/Gigs/Models/User.swift | 13 +++++++++++++ 3 files changed, 36 insertions(+) create mode 100644 Gigs/Gigs/Models/Bearer.swift create mode 100644 Gigs/Gigs/Models/User.swift diff --git a/Gigs/Gigs.xcodeproj/project.pbxproj b/Gigs/Gigs.xcodeproj/project.pbxproj index d181b662..35fd64a7 100644 --- a/Gigs/Gigs.xcodeproj/project.pbxproj +++ b/Gigs/Gigs.xcodeproj/project.pbxproj @@ -14,6 +14,8 @@ A8081B9B25C8F3DB00B91D5A /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = A8081B9925C8F3DB00B91D5A /* LaunchScreen.storyboard */; }; A8081BAF25C8F8D000B91D5A /* GigsTableViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A8081BAE25C8F8D000B91D5A /* GigsTableViewController.swift */; }; A8081BB225C8F92E00B91D5A /* SignInViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A8081BB125C8F92E00B91D5A /* SignInViewController.swift */; }; + A8081BB525C8FEC700B91D5A /* Bearer.swift in Sources */ = {isa = PBXBuildFile; fileRef = A8081BB425C8FEC700B91D5A /* Bearer.swift */; }; + A8081BBC25C9002D00B91D5A /* User.swift in Sources */ = {isa = PBXBuildFile; fileRef = A8081BBB25C9002D00B91D5A /* User.swift */; }; /* End PBXBuildFile section */ /* Begin PBXFileReference section */ @@ -26,6 +28,8 @@ A8081B9C25C8F3DB00B91D5A /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; A8081BAE25C8F8D000B91D5A /* GigsTableViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GigsTableViewController.swift; sourceTree = ""; }; A8081BB125C8F92E00B91D5A /* SignInViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SignInViewController.swift; sourceTree = ""; }; + A8081BB425C8FEC700B91D5A /* Bearer.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Bearer.swift; sourceTree = ""; }; + A8081BBB25C9002D00B91D5A /* User.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = User.swift; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -87,6 +91,8 @@ A8081BA525C8F6A500B91D5A /* Models */ = { isa = PBXGroup; children = ( + A8081BB425C8FEC700B91D5A /* Bearer.swift */, + A8081BBB25C9002D00B91D5A /* User.swift */, ); path = Models; sourceTree = ""; @@ -212,7 +218,9 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( + A8081BB525C8FEC700B91D5A /* Bearer.swift in Sources */, A8081BB225C8F92E00B91D5A /* SignInViewController.swift in Sources */, + A8081BBC25C9002D00B91D5A /* User.swift in Sources */, A8081B8F25C8F3D400B91D5A /* AppDelegate.swift in Sources */, A8081B9125C8F3D500B91D5A /* SceneDelegate.swift in Sources */, A8081BAF25C8F8D000B91D5A /* GigsTableViewController.swift in Sources */, diff --git a/Gigs/Gigs/Models/Bearer.swift b/Gigs/Gigs/Models/Bearer.swift new file mode 100644 index 00000000..d7724648 --- /dev/null +++ b/Gigs/Gigs/Models/Bearer.swift @@ -0,0 +1,15 @@ +// +// Bearer.swift +// Gigs +// +// Created by James McDougall on 2/1/21. +// + +import Foundation + +struct Bearer { + var id: [String:Int] + var token: [String: String] + var userId: [String: Int] +} + diff --git a/Gigs/Gigs/Models/User.swift b/Gigs/Gigs/Models/User.swift new file mode 100644 index 00000000..92ce86e3 --- /dev/null +++ b/Gigs/Gigs/Models/User.swift @@ -0,0 +1,13 @@ +// +// User.swift +// Gigs +// +// Created by James McDougall on 2/1/21. +// + +import Foundation + +struct User { + var username: String + var password: String +}