From b808b7ab0ccff9fcccc14159ce5ce7e2aba8e846 Mon Sep 17 00:00:00 2001 From: sam Date: Wed, 12 Dec 2018 21:17:08 -0700 Subject: [PATCH] Sam Biggs Rainbow finished MVP --- AppDelegate.swift | 46 +++ .../AppIcon.appiconset/Contents.json | 98 +++++ Assets.xcassets/Contents.json | 6 + Base.lproj/LaunchScreen.storyboard | 25 ++ Base.lproj/Main.storyboard | 92 +++++ Info.plist | 45 +++ Rainbow.xcodeproj/project.pbxproj | 341 ++++++++++++++++++ Rainbow/AppDelegate.swift | 46 +++ .../AppIcon.appiconset/Contents.json | 98 +++++ Rainbow/Assets.xcassets/Contents.json | 6 + Rainbow/Base.lproj/LaunchScreen.storyboard | 25 ++ Rainbow/Base.lproj/Main.storyboard | 92 +++++ Rainbow/Info.plist | 45 +++ Rainbow/ViewController.swift | 40 ++ ViewController.swift | 40 ++ 15 files changed, 1045 insertions(+) create mode 100644 AppDelegate.swift create mode 100644 Assets.xcassets/AppIcon.appiconset/Contents.json create mode 100644 Assets.xcassets/Contents.json create mode 100644 Base.lproj/LaunchScreen.storyboard create mode 100644 Base.lproj/Main.storyboard create mode 100644 Info.plist create mode 100644 Rainbow.xcodeproj/project.pbxproj create mode 100644 Rainbow/AppDelegate.swift create mode 100644 Rainbow/Assets.xcassets/AppIcon.appiconset/Contents.json create mode 100644 Rainbow/Assets.xcassets/Contents.json create mode 100644 Rainbow/Base.lproj/LaunchScreen.storyboard create mode 100644 Rainbow/Base.lproj/Main.storyboard create mode 100644 Rainbow/Info.plist create mode 100644 Rainbow/ViewController.swift create mode 100644 ViewController.swift diff --git a/AppDelegate.swift b/AppDelegate.swift new file mode 100644 index 0000000..dcdf281 --- /dev/null +++ b/AppDelegate.swift @@ -0,0 +1,46 @@ +// +// AppDelegate.swift +// Rainbow +// +// Created by Samuel Biggs on 9/23/18. +// Copyright © 2018 Samuel Biggs. 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/Assets.xcassets/AppIcon.appiconset/Contents.json b/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..d8db8d6 --- /dev/null +++ b/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/Assets.xcassets/Contents.json b/Assets.xcassets/Contents.json new file mode 100644 index 0000000..da4a164 --- /dev/null +++ b/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Base.lproj/LaunchScreen.storyboard b/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..bfa3612 --- /dev/null +++ b/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Base.lproj/Main.storyboard b/Base.lproj/Main.storyboard new file mode 100644 index 0000000..0f0518d --- /dev/null +++ b/Base.lproj/Main.storyboard @@ -0,0 +1,92 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Info.plist b/Info.plist new file mode 100644 index 0000000..16be3b6 --- /dev/null +++ b/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/Rainbow.xcodeproj/project.pbxproj b/Rainbow.xcodeproj/project.pbxproj new file mode 100644 index 0000000..65c6831 --- /dev/null +++ b/Rainbow.xcodeproj/project.pbxproj @@ -0,0 +1,341 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 51; + objects = { + +/* Begin PBXBuildFile section */ + 22C90A3A21584C9200A4B9C3 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 22C90A3921584C9200A4B9C3 /* AppDelegate.swift */; }; + 22C90A3C21584C9200A4B9C3 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 22C90A3B21584C9200A4B9C3 /* ViewController.swift */; }; + 22C90A3F21584C9200A4B9C3 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 22C90A3D21584C9200A4B9C3 /* Main.storyboard */; }; + 22C90A4121584C9300A4B9C3 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 22C90A4021584C9300A4B9C3 /* Assets.xcassets */; }; + 22C90A4421584C9300A4B9C3 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 22C90A4221584C9300A4B9C3 /* LaunchScreen.storyboard */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 22C90A3621584C9200A4B9C3 /* Rainbow.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Rainbow.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 22C90A3921584C9200A4B9C3 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 22C90A3B21584C9200A4B9C3 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; + 22C90A3E21584C9200A4B9C3 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 22C90A4021584C9300A4B9C3 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 22C90A4321584C9300A4B9C3 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 22C90A4521584C9300A4B9C3 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 22C90A3321584C9200A4B9C3 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 22C90A2D21584C9200A4B9C3 = { + isa = PBXGroup; + children = ( + 22C90A3821584C9200A4B9C3 /* Rainbow */, + 22C90A3721584C9200A4B9C3 /* Products */, + ); + sourceTree = ""; + }; + 22C90A3721584C9200A4B9C3 /* Products */ = { + isa = PBXGroup; + children = ( + 22C90A3621584C9200A4B9C3 /* Rainbow.app */, + ); + name = Products; + sourceTree = ""; + }; + 22C90A3821584C9200A4B9C3 /* Rainbow */ = { + isa = PBXGroup; + children = ( + 22C90A3921584C9200A4B9C3 /* AppDelegate.swift */, + 22C90A3B21584C9200A4B9C3 /* ViewController.swift */, + 22C90A3D21584C9200A4B9C3 /* Main.storyboard */, + 22C90A4021584C9300A4B9C3 /* Assets.xcassets */, + 22C90A4221584C9300A4B9C3 /* LaunchScreen.storyboard */, + 22C90A4521584C9300A4B9C3 /* Info.plist */, + ); + path = Rainbow; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 22C90A3521584C9200A4B9C3 /* Rainbow */ = { + isa = PBXNativeTarget; + buildConfigurationList = 22C90A4821584C9300A4B9C3 /* Build configuration list for PBXNativeTarget "Rainbow" */; + buildPhases = ( + 22C90A3221584C9200A4B9C3 /* Sources */, + 22C90A3321584C9200A4B9C3 /* Frameworks */, + 22C90A3421584C9200A4B9C3 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = Rainbow; + productName = Rainbow; + productReference = 22C90A3621584C9200A4B9C3 /* Rainbow.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 22C90A2E21584C9200A4B9C3 /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 1000; + LastUpgradeCheck = 1000; + ORGANIZATIONNAME = "Samuel Biggs"; + TargetAttributes = { + 22C90A3521584C9200A4B9C3 = { + CreatedOnToolsVersion = 10.0; + }; + }; + }; + buildConfigurationList = 22C90A3121584C9200A4B9C3 /* Build configuration list for PBXProject "Rainbow" */; + compatibilityVersion = "Xcode 10.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 22C90A2D21584C9200A4B9C3; + productRefGroup = 22C90A3721584C9200A4B9C3 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 22C90A3521584C9200A4B9C3 /* Rainbow */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 22C90A3421584C9200A4B9C3 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 22C90A4421584C9300A4B9C3 /* LaunchScreen.storyboard in Resources */, + 22C90A4121584C9300A4B9C3 /* Assets.xcassets in Resources */, + 22C90A3F21584C9200A4B9C3 /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 22C90A3221584C9200A4B9C3 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 22C90A3C21584C9200A4B9C3 /* ViewController.swift in Sources */, + 22C90A3A21584C9200A4B9C3 /* AppDelegate.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + 22C90A3D21584C9200A4B9C3 /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 22C90A3E21584C9200A4B9C3 /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 22C90A4221584C9300A4B9C3 /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 22C90A4321584C9300A4B9C3 /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 22C90A4621584C9300A4B9C3 /* 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.0; + 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; + }; + 22C90A4721584C9300A4B9C3 /* 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.0; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 22C90A4921584C9300A4B9C3 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = JF4R2SJ94D; + INFOPLIST_FILE = Rainbow/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.sam.Rainbow; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 4.2; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 22C90A4A21584C9300A4B9C3 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = JF4R2SJ94D; + INFOPLIST_FILE = Rainbow/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.sam.Rainbow; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 4.2; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 22C90A3121584C9200A4B9C3 /* Build configuration list for PBXProject "Rainbow" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 22C90A4621584C9300A4B9C3 /* Debug */, + 22C90A4721584C9300A4B9C3 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 22C90A4821584C9300A4B9C3 /* Build configuration list for PBXNativeTarget "Rainbow" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 22C90A4921584C9300A4B9C3 /* Debug */, + 22C90A4A21584C9300A4B9C3 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 22C90A2E21584C9200A4B9C3 /* Project object */; +} diff --git a/Rainbow/AppDelegate.swift b/Rainbow/AppDelegate.swift new file mode 100644 index 0000000..dcdf281 --- /dev/null +++ b/Rainbow/AppDelegate.swift @@ -0,0 +1,46 @@ +// +// AppDelegate.swift +// Rainbow +// +// Created by Samuel Biggs on 9/23/18. +// Copyright © 2018 Samuel Biggs. 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/Rainbow/Assets.xcassets/AppIcon.appiconset/Contents.json b/Rainbow/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..d8db8d6 --- /dev/null +++ b/Rainbow/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/Rainbow/Assets.xcassets/Contents.json b/Rainbow/Assets.xcassets/Contents.json new file mode 100644 index 0000000..da4a164 --- /dev/null +++ b/Rainbow/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Rainbow/Base.lproj/LaunchScreen.storyboard b/Rainbow/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..bfa3612 --- /dev/null +++ b/Rainbow/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Rainbow/Base.lproj/Main.storyboard b/Rainbow/Base.lproj/Main.storyboard new file mode 100644 index 0000000..0f0518d --- /dev/null +++ b/Rainbow/Base.lproj/Main.storyboard @@ -0,0 +1,92 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Rainbow/Info.plist b/Rainbow/Info.plist new file mode 100644 index 0000000..16be3b6 --- /dev/null +++ b/Rainbow/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/Rainbow/ViewController.swift b/Rainbow/ViewController.swift new file mode 100644 index 0000000..ee4615c --- /dev/null +++ b/Rainbow/ViewController.swift @@ -0,0 +1,40 @@ +// +// ViewController.swift +// Rainbow +// +// Created by Samuel Biggs on 9/23/18. +// Copyright © 2018 Samuel Biggs. All rights reserved. +// + +import UIKit + +class ViewController: UIViewController { + + @IBAction func redRainbow(_ sender: Any) { + view.backgroundColor = .red + } + + @IBAction func orangeRainbow(_ sender: Any) { + view.backgroundColor = .orange + } + + @IBAction func yellowRainbow(_ sender: Any) { + view.backgroundColor = .yellow + } + + @IBAction func greenRainbow(_ sender: Any) { + view.backgroundColor = .green + } + + @IBAction func blueRainbow(_ sender: Any) { + view.backgroundColor = .blue + } + + @IBAction func purpleRainbow(_ sender: Any) { + view.backgroundColor = .purple + } +} + + + + diff --git a/ViewController.swift b/ViewController.swift new file mode 100644 index 0000000..ee4615c --- /dev/null +++ b/ViewController.swift @@ -0,0 +1,40 @@ +// +// ViewController.swift +// Rainbow +// +// Created by Samuel Biggs on 9/23/18. +// Copyright © 2018 Samuel Biggs. All rights reserved. +// + +import UIKit + +class ViewController: UIViewController { + + @IBAction func redRainbow(_ sender: Any) { + view.backgroundColor = .red + } + + @IBAction func orangeRainbow(_ sender: Any) { + view.backgroundColor = .orange + } + + @IBAction func yellowRainbow(_ sender: Any) { + view.backgroundColor = .yellow + } + + @IBAction func greenRainbow(_ sender: Any) { + view.backgroundColor = .green + } + + @IBAction func blueRainbow(_ sender: Any) { + view.backgroundColor = .blue + } + + @IBAction func purpleRainbow(_ sender: Any) { + view.backgroundColor = .purple + } +} + + + +