diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..ba7ebbf Binary files /dev/null and b/.DS_Store differ diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..dfe0770 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +# Auto detect text files and perform LF normalization +* text=auto diff --git a/i2020_02_04.xcodeproj/project.pbxproj b/i2020_02_04.xcodeproj/project.pbxproj new file mode 100644 index 0000000..24bad0d --- /dev/null +++ b/i2020_02_04.xcodeproj/project.pbxproj @@ -0,0 +1,611 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 50; + objects = { + +/* Begin PBXBuildFile section */ + 8DE66A3D23E9E45D00BE3A22 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8DE66A3C23E9E45D00BE3A22 /* AppDelegate.swift */; }; + 8DE66A3F23E9E45D00BE3A22 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8DE66A3E23E9E45D00BE3A22 /* SceneDelegate.swift */; }; + 8DE66A4123E9E45D00BE3A22 /* QuizViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8DE66A4023E9E45D00BE3A22 /* QuizViewController.swift */; }; + 8DE66A4423E9E45D00BE3A22 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 8DE66A4223E9E45D00BE3A22 /* Main.storyboard */; }; + 8DE66A4623E9E45F00BE3A22 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 8DE66A4523E9E45F00BE3A22 /* Assets.xcassets */; }; + 8DE66A4923E9E45F00BE3A22 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 8DE66A4723E9E45F00BE3A22 /* LaunchScreen.storyboard */; }; + 8DE66A5423E9E45F00BE3A22 /* i2020_02_04Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8DE66A5323E9E45F00BE3A22 /* i2020_02_04Tests.swift */; }; + 8DE66A5F23E9E45F00BE3A22 /* i2020_02_04UITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8DE66A5E23E9E45F00BE3A22 /* i2020_02_04UITests.swift */; }; + 8DE66A6E23E9E4D800BE3A22 /* Question.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8DE66A6D23E9E4D800BE3A22 /* Question.swift */; }; + 8DE66A7023E9E53900BE3A22 /* ListOfQuestions.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8DE66A6F23E9E53900BE3A22 /* ListOfQuestions.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 8DE66A5023E9E45F00BE3A22 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 8DE66A3123E9E45D00BE3A22 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 8DE66A3823E9E45D00BE3A22; + remoteInfo = i2020_02_04; + }; + 8DE66A5B23E9E45F00BE3A22 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 8DE66A3123E9E45D00BE3A22 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 8DE66A3823E9E45D00BE3A22; + remoteInfo = i2020_02_04; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 8DE66A3923E9E45D00BE3A22 /* i2020_02_04.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = i2020_02_04.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 8DE66A3C23E9E45D00BE3A22 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 8DE66A3E23E9E45D00BE3A22 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = ""; }; + 8DE66A4023E9E45D00BE3A22 /* QuizViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = QuizViewController.swift; sourceTree = ""; }; + 8DE66A4323E9E45D00BE3A22 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 8DE66A4523E9E45F00BE3A22 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 8DE66A4823E9E45F00BE3A22 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 8DE66A4A23E9E45F00BE3A22 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 8DE66A4F23E9E45F00BE3A22 /* i2020_02_04Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = i2020_02_04Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 8DE66A5323E9E45F00BE3A22 /* i2020_02_04Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = i2020_02_04Tests.swift; sourceTree = ""; }; + 8DE66A5523E9E45F00BE3A22 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 8DE66A5A23E9E45F00BE3A22 /* i2020_02_04UITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = i2020_02_04UITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 8DE66A5E23E9E45F00BE3A22 /* i2020_02_04UITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = i2020_02_04UITests.swift; sourceTree = ""; }; + 8DE66A6023E9E45F00BE3A22 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 8DE66A6D23E9E4D800BE3A22 /* Question.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Question.swift; sourceTree = ""; }; + 8DE66A6F23E9E53900BE3A22 /* ListOfQuestions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ListOfQuestions.swift; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 8DE66A3623E9E45D00BE3A22 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 8DE66A4C23E9E45F00BE3A22 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 8DE66A5723E9E45F00BE3A22 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 8DE66A3023E9E45D00BE3A22 = { + isa = PBXGroup; + children = ( + 8DE66A3B23E9E45D00BE3A22 /* i2020_02_04 */, + 8DE66A5223E9E45F00BE3A22 /* i2020_02_04Tests */, + 8DE66A5D23E9E45F00BE3A22 /* i2020_02_04UITests */, + 8DE66A3A23E9E45D00BE3A22 /* Products */, + ); + sourceTree = ""; + }; + 8DE66A3A23E9E45D00BE3A22 /* Products */ = { + isa = PBXGroup; + children = ( + 8DE66A3923E9E45D00BE3A22 /* i2020_02_04.app */, + 8DE66A4F23E9E45F00BE3A22 /* i2020_02_04Tests.xctest */, + 8DE66A5A23E9E45F00BE3A22 /* i2020_02_04UITests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 8DE66A3B23E9E45D00BE3A22 /* i2020_02_04 */ = { + isa = PBXGroup; + children = ( + 8DE66A6C23E9E4AB00BE3A22 /* Model */, + 8DE66A3C23E9E45D00BE3A22 /* AppDelegate.swift */, + 8DE66A3E23E9E45D00BE3A22 /* SceneDelegate.swift */, + 8DE66A4023E9E45D00BE3A22 /* QuizViewController.swift */, + 8DE66A4223E9E45D00BE3A22 /* Main.storyboard */, + 8DE66A4523E9E45F00BE3A22 /* Assets.xcassets */, + 8DE66A4723E9E45F00BE3A22 /* LaunchScreen.storyboard */, + 8DE66A4A23E9E45F00BE3A22 /* Info.plist */, + ); + path = i2020_02_04; + sourceTree = ""; + }; + 8DE66A5223E9E45F00BE3A22 /* i2020_02_04Tests */ = { + isa = PBXGroup; + children = ( + 8DE66A5323E9E45F00BE3A22 /* i2020_02_04Tests.swift */, + 8DE66A5523E9E45F00BE3A22 /* Info.plist */, + ); + path = i2020_02_04Tests; + sourceTree = ""; + }; + 8DE66A5D23E9E45F00BE3A22 /* i2020_02_04UITests */ = { + isa = PBXGroup; + children = ( + 8DE66A5E23E9E45F00BE3A22 /* i2020_02_04UITests.swift */, + 8DE66A6023E9E45F00BE3A22 /* Info.plist */, + ); + path = i2020_02_04UITests; + sourceTree = ""; + }; + 8DE66A6C23E9E4AB00BE3A22 /* Model */ = { + isa = PBXGroup; + children = ( + 8DE66A6D23E9E4D800BE3A22 /* Question.swift */, + 8DE66A6F23E9E53900BE3A22 /* ListOfQuestions.swift */, + ); + path = Model; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 8DE66A3823E9E45D00BE3A22 /* i2020_02_04 */ = { + isa = PBXNativeTarget; + buildConfigurationList = 8DE66A6323E9E45F00BE3A22 /* Build configuration list for PBXNativeTarget "i2020_02_04" */; + buildPhases = ( + 8DE66A3523E9E45D00BE3A22 /* Sources */, + 8DE66A3623E9E45D00BE3A22 /* Frameworks */, + 8DE66A3723E9E45D00BE3A22 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = i2020_02_04; + productName = i2020_02_04; + productReference = 8DE66A3923E9E45D00BE3A22 /* i2020_02_04.app */; + productType = "com.apple.product-type.application"; + }; + 8DE66A4E23E9E45F00BE3A22 /* i2020_02_04Tests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 8DE66A6623E9E45F00BE3A22 /* Build configuration list for PBXNativeTarget "i2020_02_04Tests" */; + buildPhases = ( + 8DE66A4B23E9E45F00BE3A22 /* Sources */, + 8DE66A4C23E9E45F00BE3A22 /* Frameworks */, + 8DE66A4D23E9E45F00BE3A22 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 8DE66A5123E9E45F00BE3A22 /* PBXTargetDependency */, + ); + name = i2020_02_04Tests; + productName = i2020_02_04Tests; + productReference = 8DE66A4F23E9E45F00BE3A22 /* i2020_02_04Tests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + 8DE66A5923E9E45F00BE3A22 /* i2020_02_04UITests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 8DE66A6923E9E45F00BE3A22 /* Build configuration list for PBXNativeTarget "i2020_02_04UITests" */; + buildPhases = ( + 8DE66A5623E9E45F00BE3A22 /* Sources */, + 8DE66A5723E9E45F00BE3A22 /* Frameworks */, + 8DE66A5823E9E45F00BE3A22 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 8DE66A5C23E9E45F00BE3A22 /* PBXTargetDependency */, + ); + name = i2020_02_04UITests; + productName = i2020_02_04UITests; + productReference = 8DE66A5A23E9E45F00BE3A22 /* i2020_02_04UITests.xctest */; + productType = "com.apple.product-type.bundle.ui-testing"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 8DE66A3123E9E45D00BE3A22 /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 1130; + LastUpgradeCheck = 1130; + ORGANIZATIONNAME = "Bradford, Phillip"; + TargetAttributes = { + 8DE66A3823E9E45D00BE3A22 = { + CreatedOnToolsVersion = 11.3.1; + }; + 8DE66A4E23E9E45F00BE3A22 = { + CreatedOnToolsVersion = 11.3.1; + TestTargetID = 8DE66A3823E9E45D00BE3A22; + }; + 8DE66A5923E9E45F00BE3A22 = { + CreatedOnToolsVersion = 11.3.1; + TestTargetID = 8DE66A3823E9E45D00BE3A22; + }; + }; + }; + buildConfigurationList = 8DE66A3423E9E45D00BE3A22 /* Build configuration list for PBXProject "i2020_02_04" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 8DE66A3023E9E45D00BE3A22; + productRefGroup = 8DE66A3A23E9E45D00BE3A22 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 8DE66A3823E9E45D00BE3A22 /* i2020_02_04 */, + 8DE66A4E23E9E45F00BE3A22 /* i2020_02_04Tests */, + 8DE66A5923E9E45F00BE3A22 /* i2020_02_04UITests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 8DE66A3723E9E45D00BE3A22 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 8DE66A4923E9E45F00BE3A22 /* LaunchScreen.storyboard in Resources */, + 8DE66A4623E9E45F00BE3A22 /* Assets.xcassets in Resources */, + 8DE66A4423E9E45D00BE3A22 /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 8DE66A4D23E9E45F00BE3A22 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 8DE66A5823E9E45F00BE3A22 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 8DE66A3523E9E45D00BE3A22 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 8DE66A7023E9E53900BE3A22 /* ListOfQuestions.swift in Sources */, + 8DE66A4123E9E45D00BE3A22 /* QuizViewController.swift in Sources */, + 8DE66A6E23E9E4D800BE3A22 /* Question.swift in Sources */, + 8DE66A3D23E9E45D00BE3A22 /* AppDelegate.swift in Sources */, + 8DE66A3F23E9E45D00BE3A22 /* SceneDelegate.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 8DE66A4B23E9E45F00BE3A22 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 8DE66A5423E9E45F00BE3A22 /* i2020_02_04Tests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 8DE66A5623E9E45F00BE3A22 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 8DE66A5F23E9E45F00BE3A22 /* i2020_02_04UITests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 8DE66A5123E9E45F00BE3A22 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 8DE66A3823E9E45D00BE3A22 /* i2020_02_04 */; + targetProxy = 8DE66A5023E9E45F00BE3A22 /* PBXContainerItemProxy */; + }; + 8DE66A5C23E9E45F00BE3A22 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 8DE66A3823E9E45D00BE3A22 /* i2020_02_04 */; + targetProxy = 8DE66A5B23E9E45F00BE3A22 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 8DE66A4223E9E45D00BE3A22 /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 8DE66A4323E9E45D00BE3A22 /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 8DE66A4723E9E45F00BE3A22 /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 8DE66A4823E9E45F00BE3A22 /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 8DE66A6123E9E45F00BE3A22 /* 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; + 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 = 13.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; + }; + 8DE66A6223E9E45F00BE3A22 /* 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; + 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 = 13.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; + }; + 8DE66A6423E9E45F00BE3A22 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = 9RYN4XN273; + INFOPLIST_FILE = i2020_02_04/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = "PGB.i2020-02-04"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 8DE66A6523E9E45F00BE3A22 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = 9RYN4XN273; + INFOPLIST_FILE = i2020_02_04/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = "PGB.i2020-02-04"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; + 8DE66A6723E9E45F00BE3A22 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = 9RYN4XN273; + INFOPLIST_FILE = i2020_02_04Tests/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 13.2; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = "PGB.i2020-02-04Tests"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/i2020_02_04.app/i2020_02_04"; + }; + name = Debug; + }; + 8DE66A6823E9E45F00BE3A22 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = 9RYN4XN273; + INFOPLIST_FILE = i2020_02_04Tests/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 13.2; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = "PGB.i2020-02-04Tests"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/i2020_02_04.app/i2020_02_04"; + }; + name = Release; + }; + 8DE66A6A23E9E45F00BE3A22 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = 9RYN4XN273; + INFOPLIST_FILE = i2020_02_04UITests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = "PGB.i2020-02-04UITests"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = i2020_02_04; + }; + name = Debug; + }; + 8DE66A6B23E9E45F00BE3A22 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = 9RYN4XN273; + INFOPLIST_FILE = i2020_02_04UITests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = "PGB.i2020-02-04UITests"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = i2020_02_04; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 8DE66A3423E9E45D00BE3A22 /* Build configuration list for PBXProject "i2020_02_04" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 8DE66A6123E9E45F00BE3A22 /* Debug */, + 8DE66A6223E9E45F00BE3A22 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 8DE66A6323E9E45F00BE3A22 /* Build configuration list for PBXNativeTarget "i2020_02_04" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 8DE66A6423E9E45F00BE3A22 /* Debug */, + 8DE66A6523E9E45F00BE3A22 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 8DE66A6623E9E45F00BE3A22 /* Build configuration list for PBXNativeTarget "i2020_02_04Tests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 8DE66A6723E9E45F00BE3A22 /* Debug */, + 8DE66A6823E9E45F00BE3A22 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 8DE66A6923E9E45F00BE3A22 /* Build configuration list for PBXNativeTarget "i2020_02_04UITests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 8DE66A6A23E9E45F00BE3A22 /* Debug */, + 8DE66A6B23E9E45F00BE3A22 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 8DE66A3123E9E45D00BE3A22 /* Project object */; +} diff --git a/i2020_02_04.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/i2020_02_04.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..911b202 --- /dev/null +++ b/i2020_02_04.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/i2020_02_04.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/i2020_02_04.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/i2020_02_04.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/i2020_02_04.xcodeproj/project.xcworkspace/xcuserdata/kenny.xcuserdatad/UserInterfaceState.xcuserstate b/i2020_02_04.xcodeproj/project.xcworkspace/xcuserdata/kenny.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000..7ed4b07 Binary files /dev/null and b/i2020_02_04.xcodeproj/project.xcworkspace/xcuserdata/kenny.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/i2020_02_04.xcodeproj/xcuserdata/kenny.xcuserdatad/xcschemes/xcschememanagement.plist b/i2020_02_04.xcodeproj/xcuserdata/kenny.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..1ea763c --- /dev/null +++ b/i2020_02_04.xcodeproj/xcuserdata/kenny.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,14 @@ + + + + + SchemeUserState + + i2020_02_04.xcscheme_^#shared#^_ + + orderHint + 0 + + + + diff --git a/i2020_02_04.xcodeproj/xcuserdata/pgb15001.xcuserdatad/xcschemes/xcschememanagement.plist b/i2020_02_04.xcodeproj/xcuserdata/pgb15001.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..1ea763c --- /dev/null +++ b/i2020_02_04.xcodeproj/xcuserdata/pgb15001.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,14 @@ + + + + + SchemeUserState + + i2020_02_04.xcscheme_^#shared#^_ + + orderHint + 0 + + + + diff --git a/i2020_02_04/AppDelegate.swift b/i2020_02_04/AppDelegate.swift new file mode 100644 index 0000000..71fec8d --- /dev/null +++ b/i2020_02_04/AppDelegate.swift @@ -0,0 +1,37 @@ +// +// AppDelegate.swift +// i2020_02_04 +// +// Created by Bradford, Phillip on 2/4/20. +// Copyright © 2020 Bradford, Phillip. All rights reserved. +// + +import UIKit + +@UIApplicationMain +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/i2020_02_04/Assets.xcassets/AppIcon.appiconset/Contents.json b/i2020_02_04/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..d8db8d6 --- /dev/null +++ b/i2020_02_04/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/i2020_02_04/Assets.xcassets/Contents.json b/i2020_02_04/Assets.xcassets/Contents.json new file mode 100644 index 0000000..da4a164 --- /dev/null +++ b/i2020_02_04/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/i2020_02_04/Assets.xcassets/LaunchImage.imageset/Contents.json b/i2020_02_04/Assets.xcassets/LaunchImage.imageset/Contents.json new file mode 100644 index 0000000..3efa7d1 --- /dev/null +++ b/i2020_02_04/Assets.xcassets/LaunchImage.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "LaunchImage.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/i2020_02_04/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/i2020_02_04/Assets.xcassets/LaunchImage.imageset/LaunchImage.png new file mode 100644 index 0000000..732717e Binary files /dev/null and b/i2020_02_04/Assets.xcassets/LaunchImage.imageset/LaunchImage.png differ diff --git a/i2020_02_04/Base.lproj/LaunchScreen.storyboard b/i2020_02_04/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..986448e --- /dev/null +++ b/i2020_02_04/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,51 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/i2020_02_04/Base.lproj/Main.storyboard b/i2020_02_04/Base.lproj/Main.storyboard new file mode 100644 index 0000000..b13087f --- /dev/null +++ b/i2020_02_04/Base.lproj/Main.storyboard @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/i2020_02_04/Info.plist b/i2020_02_04/Info.plist new file mode 100644 index 0000000..2a3483c --- /dev/null +++ b/i2020_02_04/Info.plist @@ -0,0 +1,64 @@ + + + + + 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 + + + + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/i2020_02_04/Model/ListOfQuestions.swift b/i2020_02_04/Model/ListOfQuestions.swift new file mode 100644 index 0000000..a055f2d --- /dev/null +++ b/i2020_02_04/Model/ListOfQuestions.swift @@ -0,0 +1,44 @@ +// +// ListOfQuestions.swift +// i2020_02_04 +// +// Created by Bradford, Phillip on 2/4/20. +// Copyright © 2020 Bradford, Phillip. All rights reserved. +// + +import Foundation + +public class ListOfQuestions { + + private var correctAnswers: Int = 0 + private var totalQuestionsAsked: Int = 0 + private var currentQuestionNumber: Int = 0 + + public let allQs = [ + Question(statement: "Alaska is in South America", isTrue: false, hint: "Hint: Alaska borders Canada"), + Question(statement: "Central America is a continent", isTrue: false, hint: "Hint: There are only 2 Americas"), + Question(statement: "Asia is the largest continent", isTrue: true, hint: "Hint: It looks pretty big"), + Question(statement: "Greece borders the Mediterranean sea", isTrue: true, hint: "Hint: Greece is a mediterranean country") + + ] + + public func correctAnswer() -> Void { + correctAnswers = correctAnswers + 1 + totalQuestionsAsked = totalQuestionsAsked + 1 + } + + public func nextQuestionNumber() -> Int { + + currentQuestionNumber = currentQuestionNumber + 1 + return currentQuestionNumber % allQs.count + } + + public func questionNumber() -> Int{ + return currentQuestionNumber % allQs.count + } + + public func score() -> Int { + return correctAnswers + } + +} diff --git a/i2020_02_04/Model/Question.swift b/i2020_02_04/Model/Question.swift new file mode 100644 index 0000000..216f3d3 --- /dev/null +++ b/i2020_02_04/Model/Question.swift @@ -0,0 +1,23 @@ +// +// Question.swift +// i2020_02_04 +// +// Created by Bradford, Phillip on 2/4/20. +// Copyright © 2020 Bradford, Phillip. All rights reserved. +// + +import Foundation + +public struct Question { + + public var statement: String? + public var isTrue: Bool? + public var hint: String? + + public init(statement: String, isTrue: Bool, hint: String) { + self.statement = statement + self.isTrue = isTrue + self.hint = hint + } + +} diff --git a/i2020_02_04/QuizViewController.swift b/i2020_02_04/QuizViewController.swift new file mode 100644 index 0000000..30c98cc --- /dev/null +++ b/i2020_02_04/QuizViewController.swift @@ -0,0 +1,73 @@ +// +// ViewController.swift +// i2020_02_04 +// +// Created by Bradford, Phillip on 2/4/20. +// Copyright © 2020 Bradford, Phillip. All rights reserved. +// + +import UIKit + +class QuizViewController: UIViewController { + + @IBOutlet weak var hintLabel: UILabel! + + @IBOutlet weak var questionBox: UILabel! + + @IBOutlet weak var score: UILabel! + @IBOutlet weak var trueButton: UIButton! + @IBOutlet weak var falseButton: UIButton! + + let Qs = ListOfQuestions() + + override func viewDidLoad() { + super.viewDidLoad() + + questionBox.text = Qs.allQs[0].statement + + } + @IBAction func nextSelected(_ sender: Any) { + let n = Qs.nextQuestionNumber() + + questionBox.text = Qs.allQs[n].statement + + hintLabel.text = "" + score.text = "Score: " + String(Qs.score()) + } + + @IBAction func hintButton(_ sender: Any) { + + let n = Qs.questionNumber() + hintLabel.text = Qs.allQs[n].hint + } + + @IBAction func truePressed(_ sender: Any) { + let n = Qs.questionNumber() + if Qs.allQs[n].isTrue == true{ + Qs.correctAnswer() + questionBox.text = Qs.allQs[Qs.nextQuestionNumber()].statement + hintLabel.text = "" + score.text = "Score: " + String(Qs.score()) + } + else{ + questionBox.text = Qs.allQs[Qs.nextQuestionNumber()].statement + hintLabel.text = "" + score.text = "Score: " + String(Qs.score()) + } + } + + @IBAction func falsePressed(_ sender: Any) { + let n = Qs.questionNumber() + if Qs.allQs[n].isTrue == false{ + Qs.correctAnswer() + questionBox.text = Qs.allQs[Qs.nextQuestionNumber()].statement + hintLabel.text = "" + score.text = "Score: " + String(Qs.score()) + } + else{ + questionBox.text = Qs.allQs[Qs.nextQuestionNumber()].statement + hintLabel.text = "" + score.text = "Score: " + String(Qs.score()) + } + } +} diff --git a/i2020_02_04/SceneDelegate.swift b/i2020_02_04/SceneDelegate.swift new file mode 100644 index 0000000..f41cfc5 --- /dev/null +++ b/i2020_02_04/SceneDelegate.swift @@ -0,0 +1,53 @@ +// +// SceneDelegate.swift +// i2020_02_04 +// +// Created by Bradford, Phillip on 2/4/20. +// Copyright © 2020 Bradford, Phillip. All rights reserved. +// + +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 neccessarily 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/i2020_02_04Tests/Info.plist b/i2020_02_04Tests/Info.plist new file mode 100644 index 0000000..64d65ca --- /dev/null +++ b/i2020_02_04Tests/Info.plist @@ -0,0 +1,22 @@ + + + + + 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 + + diff --git a/i2020_02_04Tests/i2020_02_04Tests.swift b/i2020_02_04Tests/i2020_02_04Tests.swift new file mode 100644 index 0000000..af9ab8f --- /dev/null +++ b/i2020_02_04Tests/i2020_02_04Tests.swift @@ -0,0 +1,34 @@ +// +// i2020_02_04Tests.swift +// i2020_02_04Tests +// +// Created by Bradford, Phillip on 2/4/20. +// Copyright © 2020 Bradford, Phillip. All rights reserved. +// + +import XCTest +@testable import i2020_02_04 + +class i2020_02_04Tests: XCTestCase { + + override func setUp() { + // Put setup code here. This method is called before the invocation of each test method in the class. + } + + override func tearDown() { + // Put teardown code here. This method is called after the invocation of each test method in the class. + } + + func testExample() { + // This is an example of a functional test case. + // Use XCTAssert and related functions to verify your tests produce the correct results. + } + + func testPerformanceExample() { + // This is an example of a performance test case. + self.measure { + // Put the code you want to measure the time of here. + } + } + +} diff --git a/i2020_02_04UITests/Info.plist b/i2020_02_04UITests/Info.plist new file mode 100644 index 0000000..64d65ca --- /dev/null +++ b/i2020_02_04UITests/Info.plist @@ -0,0 +1,22 @@ + + + + + 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 + + diff --git a/i2020_02_04UITests/i2020_02_04UITests.swift b/i2020_02_04UITests/i2020_02_04UITests.swift new file mode 100644 index 0000000..63cf603 --- /dev/null +++ b/i2020_02_04UITests/i2020_02_04UITests.swift @@ -0,0 +1,43 @@ +// +// i2020_02_04UITests.swift +// i2020_02_04UITests +// +// Created by Bradford, Phillip on 2/4/20. +// Copyright © 2020 Bradford, Phillip. All rights reserved. +// + +import XCTest + +class i2020_02_04UITests: XCTestCase { + + override func setUp() { + // Put setup code here. This method is called before the invocation of each test method in the class. + + // In UI tests it is usually best to stop immediately when a failure occurs. + continueAfterFailure = false + + // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. + } + + override func tearDown() { + // Put teardown code here. This method is called after the invocation of each test method in the class. + } + + func testExample() { + // UI tests must launch the application that they test. + let app = XCUIApplication() + app.launch() + + // Use recording to get started writing UI tests. + // Use XCTAssert and related functions to verify your tests produce the correct results. + } + + func testLaunchPerformance() { + if #available(macOS 10.15, iOS 13.0, tvOS 13.0, *) { + // This measures how long it takes to launch your application. + measure(metrics: [XCTOSSignpostMetric.applicationLaunch]) { + XCUIApplication().launch() + } + } + } +}