diff --git a/jiwoo/.DS_Store b/jiwoo/.DS_Store index 23abdcf..b2614d1 100644 Binary files a/jiwoo/.DS_Store and b/jiwoo/.DS_Store differ diff --git a/jiwoo/week1-2/JiwooCafeApp/JiwooCafeApp.xcodeproj/project.xcworkspace/xcuserdata/earlysummer.xcuserdatad/UserInterfaceState.xcuserstate b/jiwoo/week1-2/JiwooCafeApp/JiwooCafeApp.xcodeproj/project.xcworkspace/xcuserdata/earlysummer.xcuserdatad/UserInterfaceState.xcuserstate index 050e174..7a929f6 100644 Binary files a/jiwoo/week1-2/JiwooCafeApp/JiwooCafeApp.xcodeproj/project.xcworkspace/xcuserdata/earlysummer.xcuserdatad/UserInterfaceState.xcuserstate and b/jiwoo/week1-2/JiwooCafeApp/JiwooCafeApp.xcodeproj/project.xcworkspace/xcuserdata/earlysummer.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/jiwoo/week1-2/JiwooCafeApp/JiwooCafeApp/ViewController/MenuSelectVC.swift b/jiwoo/week1-2/JiwooCafeApp/JiwooCafeApp/ViewController/MenuSelectVC.swift index 426ddf2..5d59e45 100644 --- a/jiwoo/week1-2/JiwooCafeApp/JiwooCafeApp/ViewController/MenuSelectVC.swift +++ b/jiwoo/week1-2/JiwooCafeApp/JiwooCafeApp/ViewController/MenuSelectVC.swift @@ -1,5 +1,5 @@ // -// MenuKindSelectVC.swift +// MenuSelectVC.swift // JiwooCafeApp // // Created by 황지우 on 2022/03/05. @@ -57,7 +57,7 @@ class MenuSelectVC: UIViewController, UITableViewDataSource,UITableViewDelegate return cell } - func tableView(_ tableView: UITableView, didDeselectRowAt indexPath: IndexPath) { + func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { print(indexPath.row) guard let orderVC = self.storyboard?.instantiateViewController(withIdentifier: "Order") as? OrderVC else{return } orderVC.name = menuList[indexPath.row].name diff --git a/jiwoo/week3/JadeStarbucksApp/.DS_Store b/jiwoo/week3/JadeStarbucksApp/.DS_Store new file mode 100644 index 0000000..c0554c1 Binary files /dev/null and b/jiwoo/week3/JadeStarbucksApp/.DS_Store differ diff --git a/jiwoo/week3/JadeStarbucksApp/JadeStarbucksApp.xcodeproj/project.xcworkspace/xcuserdata/earlysummer.xcuserdatad/UserInterfaceState.xcuserstate b/jiwoo/week3/JadeStarbucksApp/JadeStarbucksApp.xcodeproj/project.xcworkspace/xcuserdata/earlysummer.xcuserdatad/UserInterfaceState.xcuserstate index 708a091..41c11f0 100644 Binary files a/jiwoo/week3/JadeStarbucksApp/JadeStarbucksApp.xcodeproj/project.xcworkspace/xcuserdata/earlysummer.xcuserdatad/UserInterfaceState.xcuserstate and b/jiwoo/week3/JadeStarbucksApp/JadeStarbucksApp.xcodeproj/project.xcworkspace/xcuserdata/earlysummer.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/jiwoo/week3/starbucksapp/starbucksapp.xcodeproj/project.xcworkspace/xcuserdata/earlysummer.xcuserdatad/UserInterfaceState.xcuserstate b/jiwoo/week3/starbucksapp/starbucksapp.xcodeproj/project.xcworkspace/xcuserdata/earlysummer.xcuserdatad/UserInterfaceState.xcuserstate index be8f8b7..f12d39a 100644 Binary files a/jiwoo/week3/starbucksapp/starbucksapp.xcodeproj/project.xcworkspace/xcuserdata/earlysummer.xcuserdatad/UserInterfaceState.xcuserstate and b/jiwoo/week3/starbucksapp/starbucksapp.xcodeproj/project.xcworkspace/xcuserdata/earlysummer.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/jiwoo/week3/starbucksapp/starbucksapp/Base.lproj/Main.storyboard b/jiwoo/week3/starbucksapp/starbucksapp/Base.lproj/Main.storyboard index be40361..a4e46fe 100644 --- a/jiwoo/week3/starbucksapp/starbucksapp/Base.lproj/Main.storyboard +++ b/jiwoo/week3/starbucksapp/starbucksapp/Base.lproj/Main.storyboard @@ -1,8 +1,8 @@ - + - + diff --git a/jiwoo/week4/.DS_Store b/jiwoo/week4/.DS_Store new file mode 100644 index 0000000..9359eba Binary files /dev/null and b/jiwoo/week4/.DS_Store differ diff --git a/jiwoo/week4/jadeAlarmApp/.DS_Store b/jiwoo/week4/jadeAlarmApp/.DS_Store new file mode 100644 index 0000000..bfc6cf3 Binary files /dev/null and b/jiwoo/week4/jadeAlarmApp/.DS_Store differ diff --git a/jiwoo/week4/jadeAlarmApp/jadeAlarmApp.xcodeproj/project.pbxproj b/jiwoo/week4/jadeAlarmApp/jadeAlarmApp.xcodeproj/project.pbxproj new file mode 100644 index 0000000..cf0012a --- /dev/null +++ b/jiwoo/week4/jadeAlarmApp/jadeAlarmApp.xcodeproj/project.pbxproj @@ -0,0 +1,627 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 55; + objects = { + +/* Begin PBXBuildFile section */ + CD36374C27E3910600C699F3 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = CD36374B27E3910600C699F3 /* AppDelegate.swift */; }; + CD36374E27E3910600C699F3 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = CD36374D27E3910600C699F3 /* SceneDelegate.swift */; }; + CD36375327E3910600C699F3 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = CD36375127E3910600C699F3 /* Main.storyboard */; }; + CD36375527E3910800C699F3 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = CD36375427E3910800C699F3 /* Assets.xcassets */; }; + CD36375827E3910800C699F3 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = CD36375627E3910800C699F3 /* LaunchScreen.storyboard */; }; + CD36376327E3910900C699F3 /* jadeAlarmAppTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = CD36376227E3910900C699F3 /* jadeAlarmAppTests.swift */; }; + CD36376D27E3910900C699F3 /* jadeAlarmAppUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = CD36376C27E3910900C699F3 /* jadeAlarmAppUITests.swift */; }; + CD36376F27E3910900C699F3 /* jadeAlarmAppUITestsLaunchTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = CD36376E27E3910900C699F3 /* jadeAlarmAppUITestsLaunchTests.swift */; }; + CD36377C27E3912A00C699F3 /* alarmModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = CD36377B27E3912900C699F3 /* alarmModel.swift */; }; + CD36378027E392DD00C699F3 /* alarmVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = CD36377F27E392DD00C699F3 /* alarmVC.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + CD36375F27E3910900C699F3 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = CD36374027E3910600C699F3 /* Project object */; + proxyType = 1; + remoteGlobalIDString = CD36374727E3910600C699F3; + remoteInfo = jadeAlarmApp; + }; + CD36376927E3910900C699F3 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = CD36374027E3910600C699F3 /* Project object */; + proxyType = 1; + remoteGlobalIDString = CD36374727E3910600C699F3; + remoteInfo = jadeAlarmApp; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + CD36374827E3910600C699F3 /* jadeAlarmApp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = jadeAlarmApp.app; sourceTree = BUILT_PRODUCTS_DIR; }; + CD36374B27E3910600C699F3 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + CD36374D27E3910600C699F3 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = ""; }; + CD36375227E3910600C699F3 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + CD36375427E3910800C699F3 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + CD36375727E3910800C699F3 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + CD36375927E3910800C699F3 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + CD36375E27E3910900C699F3 /* jadeAlarmAppTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = jadeAlarmAppTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + CD36376227E3910900C699F3 /* jadeAlarmAppTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = jadeAlarmAppTests.swift; sourceTree = ""; }; + CD36376827E3910900C699F3 /* jadeAlarmAppUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = jadeAlarmAppUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + CD36376C27E3910900C699F3 /* jadeAlarmAppUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = jadeAlarmAppUITests.swift; sourceTree = ""; }; + CD36376E27E3910900C699F3 /* jadeAlarmAppUITestsLaunchTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = jadeAlarmAppUITestsLaunchTests.swift; sourceTree = ""; }; + CD36377B27E3912900C699F3 /* alarmModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = alarmModel.swift; sourceTree = ""; }; + CD36377F27E392DD00C699F3 /* alarmVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = alarmVC.swift; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + CD36374527E3910600C699F3 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + CD36375B27E3910900C699F3 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + CD36376527E3910900C699F3 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + CD36373F27E3910600C699F3 = { + isa = PBXGroup; + children = ( + CD36374A27E3910600C699F3 /* jadeAlarmApp */, + CD36376127E3910900C699F3 /* jadeAlarmAppTests */, + CD36376B27E3910900C699F3 /* jadeAlarmAppUITests */, + CD36374927E3910600C699F3 /* Products */, + ); + sourceTree = ""; + }; + CD36374927E3910600C699F3 /* Products */ = { + isa = PBXGroup; + children = ( + CD36374827E3910600C699F3 /* jadeAlarmApp.app */, + CD36375E27E3910900C699F3 /* jadeAlarmAppTests.xctest */, + CD36376827E3910900C699F3 /* jadeAlarmAppUITests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + CD36374A27E3910600C699F3 /* jadeAlarmApp */ = { + isa = PBXGroup; + children = ( + CD36377E27E3928800C699F3 /* ViewController */, + CD36377D27E3913000C699F3 /* Model */, + CD36374B27E3910600C699F3 /* AppDelegate.swift */, + CD36374D27E3910600C699F3 /* SceneDelegate.swift */, + CD36375127E3910600C699F3 /* Main.storyboard */, + CD36375427E3910800C699F3 /* Assets.xcassets */, + CD36375627E3910800C699F3 /* LaunchScreen.storyboard */, + CD36375927E3910800C699F3 /* Info.plist */, + ); + path = jadeAlarmApp; + sourceTree = ""; + }; + CD36376127E3910900C699F3 /* jadeAlarmAppTests */ = { + isa = PBXGroup; + children = ( + CD36376227E3910900C699F3 /* jadeAlarmAppTests.swift */, + ); + path = jadeAlarmAppTests; + sourceTree = ""; + }; + CD36376B27E3910900C699F3 /* jadeAlarmAppUITests */ = { + isa = PBXGroup; + children = ( + CD36376C27E3910900C699F3 /* jadeAlarmAppUITests.swift */, + CD36376E27E3910900C699F3 /* jadeAlarmAppUITestsLaunchTests.swift */, + ); + path = jadeAlarmAppUITests; + sourceTree = ""; + }; + CD36377D27E3913000C699F3 /* Model */ = { + isa = PBXGroup; + children = ( + CD36377B27E3912900C699F3 /* alarmModel.swift */, + ); + path = Model; + sourceTree = ""; + }; + CD36377E27E3928800C699F3 /* ViewController */ = { + isa = PBXGroup; + children = ( + CD36377F27E392DD00C699F3 /* alarmVC.swift */, + ); + path = ViewController; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + CD36374727E3910600C699F3 /* jadeAlarmApp */ = { + isa = PBXNativeTarget; + buildConfigurationList = CD36377227E3910900C699F3 /* Build configuration list for PBXNativeTarget "jadeAlarmApp" */; + buildPhases = ( + CD36374427E3910600C699F3 /* Sources */, + CD36374527E3910600C699F3 /* Frameworks */, + CD36374627E3910600C699F3 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = jadeAlarmApp; + productName = jadeAlarmApp; + productReference = CD36374827E3910600C699F3 /* jadeAlarmApp.app */; + productType = "com.apple.product-type.application"; + }; + CD36375D27E3910900C699F3 /* jadeAlarmAppTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = CD36377527E3910900C699F3 /* Build configuration list for PBXNativeTarget "jadeAlarmAppTests" */; + buildPhases = ( + CD36375A27E3910900C699F3 /* Sources */, + CD36375B27E3910900C699F3 /* Frameworks */, + CD36375C27E3910900C699F3 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + CD36376027E3910900C699F3 /* PBXTargetDependency */, + ); + name = jadeAlarmAppTests; + productName = jadeAlarmAppTests; + productReference = CD36375E27E3910900C699F3 /* jadeAlarmAppTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + CD36376727E3910900C699F3 /* jadeAlarmAppUITests */ = { + isa = PBXNativeTarget; + buildConfigurationList = CD36377827E3910900C699F3 /* Build configuration list for PBXNativeTarget "jadeAlarmAppUITests" */; + buildPhases = ( + CD36376427E3910900C699F3 /* Sources */, + CD36376527E3910900C699F3 /* Frameworks */, + CD36376627E3910900C699F3 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + CD36376A27E3910900C699F3 /* PBXTargetDependency */, + ); + name = jadeAlarmAppUITests; + productName = jadeAlarmAppUITests; + productReference = CD36376827E3910900C699F3 /* jadeAlarmAppUITests.xctest */; + productType = "com.apple.product-type.bundle.ui-testing"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + CD36374027E3910600C699F3 /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = 1; + LastSwiftUpdateCheck = 1330; + LastUpgradeCheck = 1330; + TargetAttributes = { + CD36374727E3910600C699F3 = { + CreatedOnToolsVersion = 13.3; + }; + CD36375D27E3910900C699F3 = { + CreatedOnToolsVersion = 13.3; + TestTargetID = CD36374727E3910600C699F3; + }; + CD36376727E3910900C699F3 = { + CreatedOnToolsVersion = 13.3; + TestTargetID = CD36374727E3910600C699F3; + }; + }; + }; + buildConfigurationList = CD36374327E3910600C699F3 /* Build configuration list for PBXProject "jadeAlarmApp" */; + compatibilityVersion = "Xcode 13.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = CD36373F27E3910600C699F3; + productRefGroup = CD36374927E3910600C699F3 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + CD36374727E3910600C699F3 /* jadeAlarmApp */, + CD36375D27E3910900C699F3 /* jadeAlarmAppTests */, + CD36376727E3910900C699F3 /* jadeAlarmAppUITests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + CD36374627E3910600C699F3 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + CD36375827E3910800C699F3 /* LaunchScreen.storyboard in Resources */, + CD36375527E3910800C699F3 /* Assets.xcassets in Resources */, + CD36375327E3910600C699F3 /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + CD36375C27E3910900C699F3 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + CD36376627E3910900C699F3 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + CD36374427E3910600C699F3 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + CD36377C27E3912A00C699F3 /* alarmModel.swift in Sources */, + CD36374C27E3910600C699F3 /* AppDelegate.swift in Sources */, + CD36378027E392DD00C699F3 /* alarmVC.swift in Sources */, + CD36374E27E3910600C699F3 /* SceneDelegate.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + CD36375A27E3910900C699F3 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + CD36376327E3910900C699F3 /* jadeAlarmAppTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + CD36376427E3910900C699F3 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + CD36376F27E3910900C699F3 /* jadeAlarmAppUITestsLaunchTests.swift in Sources */, + CD36376D27E3910900C699F3 /* jadeAlarmAppUITests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + CD36376027E3910900C699F3 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = CD36374727E3910600C699F3 /* jadeAlarmApp */; + targetProxy = CD36375F27E3910900C699F3 /* PBXContainerItemProxy */; + }; + CD36376A27E3910900C699F3 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = CD36374727E3910600C699F3 /* jadeAlarmApp */; + targetProxy = CD36376927E3910900C699F3 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + CD36375127E3910600C699F3 /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + CD36375227E3910600C699F3 /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + CD36375627E3910800C699F3 /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + CD36375727E3910800C699F3 /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + CD36377027E3910900C699F3 /* 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++17"; + 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 = 15.4; + 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; + }; + CD36377127E3910900C699F3 /* 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++17"; + 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 = 15.4; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + CD36377327E3910900C699F3 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = G8XX337GMH; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = jadeAlarmApp/Info.plist; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen; + INFOPLIST_KEY_UIMainStoryboardFile = Main; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = jade.jadeAlarmApp; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + CD36377427E3910900C699F3 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = G8XX337GMH; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = jadeAlarmApp/Info.plist; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen; + INFOPLIST_KEY_UIMainStoryboardFile = Main; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = jade.jadeAlarmApp; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; + CD36377627E3910900C699F3 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = G8XX337GMH; + GENERATE_INFOPLIST_FILE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 15.4; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = jade.jadeAlarmAppTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/jadeAlarmApp.app/jadeAlarmApp"; + }; + name = Debug; + }; + CD36377727E3910900C699F3 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = G8XX337GMH; + GENERATE_INFOPLIST_FILE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 15.4; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = jade.jadeAlarmAppTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/jadeAlarmApp.app/jadeAlarmApp"; + }; + name = Release; + }; + CD36377927E3910900C699F3 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = G8XX337GMH; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = jade.jadeAlarmAppUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = jadeAlarmApp; + }; + name = Debug; + }; + CD36377A27E3910900C699F3 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = G8XX337GMH; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = jade.jadeAlarmAppUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = jadeAlarmApp; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + CD36374327E3910600C699F3 /* Build configuration list for PBXProject "jadeAlarmApp" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + CD36377027E3910900C699F3 /* Debug */, + CD36377127E3910900C699F3 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + CD36377227E3910900C699F3 /* Build configuration list for PBXNativeTarget "jadeAlarmApp" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + CD36377327E3910900C699F3 /* Debug */, + CD36377427E3910900C699F3 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + CD36377527E3910900C699F3 /* Build configuration list for PBXNativeTarget "jadeAlarmAppTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + CD36377627E3910900C699F3 /* Debug */, + CD36377727E3910900C699F3 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + CD36377827E3910900C699F3 /* Build configuration list for PBXNativeTarget "jadeAlarmAppUITests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + CD36377927E3910900C699F3 /* Debug */, + CD36377A27E3910900C699F3 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = CD36374027E3910600C699F3 /* Project object */; +} diff --git a/jiwoo/week4/jadeAlarmApp/jadeAlarmApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/jiwoo/week4/jadeAlarmApp/jadeAlarmApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/jiwoo/week4/jadeAlarmApp/jadeAlarmApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/jiwoo/week4/jadeAlarmApp/jadeAlarmApp.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/jiwoo/week4/jadeAlarmApp/jadeAlarmApp.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/jiwoo/week4/jadeAlarmApp/jadeAlarmApp.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/jiwoo/week4/jadeAlarmApp/jadeAlarmApp.xcodeproj/project.xcworkspace/xcuserdata/earlysummer.xcuserdatad/UserInterfaceState.xcuserstate b/jiwoo/week4/jadeAlarmApp/jadeAlarmApp.xcodeproj/project.xcworkspace/xcuserdata/earlysummer.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000..75f8505 Binary files /dev/null and b/jiwoo/week4/jadeAlarmApp/jadeAlarmApp.xcodeproj/project.xcworkspace/xcuserdata/earlysummer.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/jiwoo/week4/jadeAlarmApp/jadeAlarmApp.xcodeproj/xcuserdata/earlysummer.xcuserdatad/xcschemes/xcschememanagement.plist b/jiwoo/week4/jadeAlarmApp/jadeAlarmApp.xcodeproj/xcuserdata/earlysummer.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..3dac02e --- /dev/null +++ b/jiwoo/week4/jadeAlarmApp/jadeAlarmApp.xcodeproj/xcuserdata/earlysummer.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,14 @@ + + + + + SchemeUserState + + jadeAlarmApp.xcscheme_^#shared#^_ + + orderHint + 0 + + + + diff --git a/jiwoo/week4/jadeAlarmApp/jadeAlarmApp/AppDelegate.swift b/jiwoo/week4/jadeAlarmApp/jadeAlarmApp/AppDelegate.swift new file mode 100644 index 0000000..93f8b85 --- /dev/null +++ b/jiwoo/week4/jadeAlarmApp/jadeAlarmApp/AppDelegate.swift @@ -0,0 +1,36 @@ +// +// AppDelegate.swift +// jadeAlarmApp +// +// Created by 황지우 on 2022/03/18. +// + +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/jiwoo/week4/jadeAlarmApp/jadeAlarmApp/Assets.xcassets/AccentColor.colorset/Contents.json b/jiwoo/week4/jadeAlarmApp/jadeAlarmApp/Assets.xcassets/AccentColor.colorset/Contents.json new file mode 100644 index 0000000..eb87897 --- /dev/null +++ b/jiwoo/week4/jadeAlarmApp/jadeAlarmApp/Assets.xcassets/AccentColor.colorset/Contents.json @@ -0,0 +1,11 @@ +{ + "colors" : [ + { + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/jiwoo/week4/jadeAlarmApp/jadeAlarmApp/Assets.xcassets/AppIcon.appiconset/Contents.json b/jiwoo/week4/jadeAlarmApp/jadeAlarmApp/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..5a3257a --- /dev/null +++ b/jiwoo/week4/jadeAlarmApp/jadeAlarmApp/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,93 @@ +{ + "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" : "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/jiwoo/week4/jadeAlarmApp/jadeAlarmApp/Assets.xcassets/Contents.json b/jiwoo/week4/jadeAlarmApp/jadeAlarmApp/Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/jiwoo/week4/jadeAlarmApp/jadeAlarmApp/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/jiwoo/week4/jadeAlarmApp/jadeAlarmApp/Base.lproj/LaunchScreen.storyboard b/jiwoo/week4/jadeAlarmApp/jadeAlarmApp/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..865e932 --- /dev/null +++ b/jiwoo/week4/jadeAlarmApp/jadeAlarmApp/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/jiwoo/week4/jadeAlarmApp/jadeAlarmApp/Base.lproj/Main.storyboard b/jiwoo/week4/jadeAlarmApp/jadeAlarmApp/Base.lproj/Main.storyboard new file mode 100644 index 0000000..a3843a5 --- /dev/null +++ b/jiwoo/week4/jadeAlarmApp/jadeAlarmApp/Base.lproj/Main.storyboard @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/jiwoo/week4/jadeAlarmApp/jadeAlarmApp/Info.plist b/jiwoo/week4/jadeAlarmApp/jadeAlarmApp/Info.plist new file mode 100644 index 0000000..dd3c9af --- /dev/null +++ b/jiwoo/week4/jadeAlarmApp/jadeAlarmApp/Info.plist @@ -0,0 +1,25 @@ + + + + + UIApplicationSceneManifest + + UIApplicationSupportsMultipleScenes + + UISceneConfigurations + + UIWindowSceneSessionRoleApplication + + + UISceneConfigurationName + Default Configuration + UISceneDelegateClassName + $(PRODUCT_MODULE_NAME).SceneDelegate + UISceneStoryboardFile + Main + + + + + + diff --git a/jiwoo/week4/jadeAlarmApp/jadeAlarmApp/Model/alarmModel.swift b/jiwoo/week4/jadeAlarmApp/jadeAlarmApp/Model/alarmModel.swift new file mode 100644 index 0000000..7e5732b --- /dev/null +++ b/jiwoo/week4/jadeAlarmApp/jadeAlarmApp/Model/alarmModel.swift @@ -0,0 +1,25 @@ +// +// alarmModel.swift +// jadeAlarmApp +// +// Created by 황지우 on 2022/03/18. +// + +import Foundation + +class alarmModel { + + var hour : Int = 0 + var minute : Int = 0 + var isAM : Bool = true + var message : String = "" + var isON : Bool = false + + init(hour: Int, minute : Int, isAM : Bool, message : String, isON : Bool ){ + self.hour = hour + self.minute = minute + self.isAM = isAM + self.message = message + self.isON = isON + } +} diff --git a/jiwoo/week4/jadeAlarmApp/jadeAlarmApp/SceneDelegate.swift b/jiwoo/week4/jadeAlarmApp/jadeAlarmApp/SceneDelegate.swift new file mode 100644 index 0000000..d75c467 --- /dev/null +++ b/jiwoo/week4/jadeAlarmApp/jadeAlarmApp/SceneDelegate.swift @@ -0,0 +1,52 @@ +// +// SceneDelegate.swift +// jadeAlarmApp +// +// Created by 황지우 on 2022/03/18. +// + +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/jiwoo/week4/jadeAlarmApp/jadeAlarmApp/ViewController.swift b/jiwoo/week4/jadeAlarmApp/jadeAlarmApp/ViewController.swift new file mode 100644 index 0000000..609e969 --- /dev/null +++ b/jiwoo/week4/jadeAlarmApp/jadeAlarmApp/ViewController.swift @@ -0,0 +1,19 @@ +// +// ViewController.swift +// jadeAlarmApp +// +// Created by 황지우 on 2022/03/18. +// + +import UIKit + +class ViewController: UIViewController { + + override func viewDidLoad() { + super.viewDidLoad() + // Do any additional setup after loading the view. + } + + +} + diff --git a/jiwoo/week4/jadeAlarmApp/jadeAlarmApp/ViewController/alarmVC.swift b/jiwoo/week4/jadeAlarmApp/jadeAlarmApp/ViewController/alarmVC.swift new file mode 100644 index 0000000..6ef79bb --- /dev/null +++ b/jiwoo/week4/jadeAlarmApp/jadeAlarmApp/ViewController/alarmVC.swift @@ -0,0 +1,122 @@ +// +// alarmVC.swift +// jadeAlarmApp +// +// Created by 황지우 on 2022/03/18. +// + +import UIKit + +class alarmVC: UIViewController,UITableViewDataSource,UITableViewDelegate { + + var alarmInformationList : [alarmModel] = [] + + + override func viewDidLoad() { + super.viewDidLoad() + addAlarmInformationList(_:alarmModel(hour: 12, minute: 30, isAM: true, message: "냥냥냐오오오옹오오옹오옹오오옹오옹오옹오옹오옹오옹오오옹오오옹오오오오오오오오오오오오오오오오assdfjdjfiowfiegjfiejgwjgjgwlejfijfiejfowjfejfwifjoejfwejfewjfwjefjweofjeiwjfwejfowej", isON: true)) + addAlarmInformationList(_:alarmModel(hour: 11, minute: 20, isAM: false, message: "쿠쿠룽", isON: false)) + addAlarmInformationList(_:alarmModel(hour: 10, minute: 50, isAM: true, message: "아직도 안 일어나면 안돼", isON: false)) + + // Do any additional setup after loading the view. + } + + // 새로운 알람 정보를 추가하는 함수 + func addAlarmInformationList (_ newInformation : alarmModel){ + + alarmInformationList.append(newInformation) + + } + +// UITableViewDataSource + func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { + + return alarmInformationList.count + //return alarmInformationList.count + + } + + func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { + guard let cell = tableView.dequeueReusableCell(withIdentifier: "cell", for: indexPath) as? Listcell else {return UITableViewCell()} + cell.onOffSwitch.setOn(false, animated: true) + + //isMorningLabel Setting + if alarmInformationList[indexPath.row].isAM == true { + cell.isMorningLabel.text = "오전" + } else {cell.isMorningLabel.text = "오후"} + + //onOffSwitch Setting + 스위치에 따른 글자색 전환 + if alarmInformationList[indexPath.row].isON == true { + cell.onOffSwitch.setOn(true, animated: true) + cell.isMorningLabel.textColor = UIColor.black + cell.hourLabel.textColor = UIColor.black + cell.minuteLabel.textColor = UIColor.black + cell.messageLabel.textColor = UIColor.black + cell.seperatorLabel.textColor = UIColor.black + } + else { + cell.onOffSwitch.setOn(false, animated: true) + cell.isMorningLabel.textColor = UIColor.lightGray + cell.hourLabel.textColor = UIColor.lightGray + cell.minuteLabel.textColor = UIColor.lightGray + cell.messageLabel.textColor = UIColor.lightGray + cell.seperatorLabel.textColor = UIColor.lightGray + } + + // 기타 정보 Setting + cell.hourLabel.text = "\(alarmInformationList[indexPath.row].hour)" + cell.minuteLabel.text = "\(alarmInformationList[indexPath.row].minute)" + cell.messageLabel.text = alarmInformationList[indexPath.row].message + cell.messageLabel.sizeToFit() + + // 스위치 이벤트 구현 + + if cell.onOffSwitch.isOn { + cell.isMorningLabel.textColor = UIColor.black + cell.hourLabel.textColor = UIColor.black + cell.minuteLabel.textColor = UIColor.black + cell.messageLabel.textColor = UIColor.black + cell.seperatorLabel.textColor = UIColor.black + } + else{ + cell.isMorningLabel.textColor = UIColor.lightGray + cell.hourLabel.textColor = UIColor.lightGray + cell.minuteLabel.textColor = UIColor.lightGray + cell.messageLabel.textColor = UIColor.lightGray + cell.seperatorLabel.textColor = UIColor.lightGray + } + return cell + } + +// tableview header + + func tableView(_ tableView: UITableView, titleForHeaderInSection + section: Int) -> String? { + return "지우의 알람 앱" + } + +// tableview 각 셀의 높이를 컨텐츠에 맞춰 조정되게 해주기 + + func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat { + + return UITableView.automaticDimension + } + + func tableView(_ tableView: UITableView, estimatedHeightForRowAt indexPath: IndexPath) -> CGFloat { + + return UITableView.automaticDimension + } + + +} + +class Listcell : UITableViewCell { + + @IBOutlet weak var isMorningLabel: UILabel! + @IBOutlet weak var hourLabel: UILabel! + @IBOutlet weak var minuteLabel: UILabel! + @IBOutlet weak var onOffSwitch: UISwitch! + @IBOutlet weak var messageLabel: UILabel! + @IBOutlet weak var seperatorLabel: UILabel! + +} diff --git a/jiwoo/week4/jadeAlarmApp/jadeAlarmAppTests/jadeAlarmAppTests.swift b/jiwoo/week4/jadeAlarmApp/jadeAlarmAppTests/jadeAlarmAppTests.swift new file mode 100644 index 0000000..7003c06 --- /dev/null +++ b/jiwoo/week4/jadeAlarmApp/jadeAlarmAppTests/jadeAlarmAppTests.swift @@ -0,0 +1,36 @@ +// +// jadeAlarmAppTests.swift +// jadeAlarmAppTests +// +// Created by 황지우 on 2022/03/18. +// + +import XCTest +@testable import jadeAlarmApp + +class jadeAlarmAppTests: XCTestCase { + + override func setUpWithError() throws { + // Put setup code here. This method is called before the invocation of each test method in the class. + } + + override func tearDownWithError() throws { + // Put teardown code here. This method is called after the invocation of each test method in the class. + } + + func testExample() throws { + // This is an example of a functional test case. + // Use XCTAssert and related functions to verify your tests produce the correct results. + // Any test you write for XCTest can be annotated as throws and async. + // Mark your test throws to produce an unexpected failure when your test encounters an uncaught error. + // Mark your test async to allow awaiting for asynchronous code to complete. Check the results with assertions afterwards. + } + + func testPerformanceExample() throws { + // 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/jiwoo/week4/jadeAlarmApp/jadeAlarmAppUITests/jadeAlarmAppUITests.swift b/jiwoo/week4/jadeAlarmApp/jadeAlarmAppUITests/jadeAlarmAppUITests.swift new file mode 100644 index 0000000..ebd8c2c --- /dev/null +++ b/jiwoo/week4/jadeAlarmApp/jadeAlarmAppUITests/jadeAlarmAppUITests.swift @@ -0,0 +1,41 @@ +// +// jadeAlarmAppUITests.swift +// jadeAlarmAppUITests +// +// Created by 황지우 on 2022/03/18. +// + +import XCTest + +class jadeAlarmAppUITests: XCTestCase { + + override func setUpWithError() throws { + // 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 tearDownWithError() throws { + // Put teardown code here. This method is called after the invocation of each test method in the class. + } + + func testExample() throws { + // UI tests must launch the application that they test. + let app = XCUIApplication() + app.launch() + + // Use XCTAssert and related functions to verify your tests produce the correct results. + } + + func testLaunchPerformance() throws { + if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 7.0, *) { + // This measures how long it takes to launch your application. + measure(metrics: [XCTApplicationLaunchMetric()]) { + XCUIApplication().launch() + } + } + } +} diff --git a/jiwoo/week4/jadeAlarmApp/jadeAlarmAppUITests/jadeAlarmAppUITestsLaunchTests.swift b/jiwoo/week4/jadeAlarmApp/jadeAlarmAppUITests/jadeAlarmAppUITestsLaunchTests.swift new file mode 100644 index 0000000..4b6e25c --- /dev/null +++ b/jiwoo/week4/jadeAlarmApp/jadeAlarmAppUITests/jadeAlarmAppUITestsLaunchTests.swift @@ -0,0 +1,32 @@ +// +// jadeAlarmAppUITestsLaunchTests.swift +// jadeAlarmAppUITests +// +// Created by 황지우 on 2022/03/18. +// + +import XCTest + +class jadeAlarmAppUITestsLaunchTests: XCTestCase { + + override class var runsForEachTargetApplicationUIConfiguration: Bool { + true + } + + override func setUpWithError() throws { + continueAfterFailure = false + } + + func testLaunch() throws { + let app = XCUIApplication() + app.launch() + + // Insert steps here to perform after app launch but before taking a screenshot, + // such as logging into a test account or navigating somewhere in the app + + let attachment = XCTAttachment(screenshot: app.screenshot()) + attachment.name = "Launch Screen" + attachment.lifetime = .keepAlways + add(attachment) + } +} diff --git a/jiwoo/week4/jadeSearchPage/SearchPage/SearchPage.xcodeproj/project.pbxproj b/jiwoo/week4/jadeSearchPage/SearchPage/SearchPage.xcodeproj/project.pbxproj new file mode 100644 index 0000000..cced4b6 --- /dev/null +++ b/jiwoo/week4/jadeSearchPage/SearchPage/SearchPage.xcodeproj/project.pbxproj @@ -0,0 +1,615 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 55; + objects = { + +/* Begin PBXBuildFile section */ + CD7CD60327F76AAB00C380E2 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = CD7CD60227F76AAB00C380E2 /* AppDelegate.swift */; }; + CD7CD60527F76AAB00C380E2 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = CD7CD60427F76AAB00C380E2 /* SceneDelegate.swift */; }; + CD7CD60A27F76AAB00C380E2 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = CD7CD60827F76AAB00C380E2 /* Main.storyboard */; }; + CD7CD60C27F76AAB00C380E2 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = CD7CD60B27F76AAB00C380E2 /* Assets.xcassets */; }; + CD7CD60F27F76AAB00C380E2 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = CD7CD60D27F76AAB00C380E2 /* LaunchScreen.storyboard */; }; + CD7CD61A27F76AAB00C380E2 /* SearchPageTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = CD7CD61927F76AAB00C380E2 /* SearchPageTests.swift */; }; + CD7CD62427F76AAC00C380E2 /* SearchPageUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = CD7CD62327F76AAC00C380E2 /* SearchPageUITests.swift */; }; + CD7CD62627F76AAC00C380E2 /* SearchPageUITestsLaunchTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = CD7CD62527F76AAC00C380E2 /* SearchPageUITestsLaunchTests.swift */; }; + CD7CD63327F76AEB00C380E2 /* SearchPageVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = CD7CD63227F76AEB00C380E2 /* SearchPageVC.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + CD7CD61627F76AAB00C380E2 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = CD7CD5F727F76AAB00C380E2 /* Project object */; + proxyType = 1; + remoteGlobalIDString = CD7CD5FE27F76AAB00C380E2; + remoteInfo = SearchPage; + }; + CD7CD62027F76AAC00C380E2 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = CD7CD5F727F76AAB00C380E2 /* Project object */; + proxyType = 1; + remoteGlobalIDString = CD7CD5FE27F76AAB00C380E2; + remoteInfo = SearchPage; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + CD7CD5FF27F76AAB00C380E2 /* SearchPage.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SearchPage.app; sourceTree = BUILT_PRODUCTS_DIR; }; + CD7CD60227F76AAB00C380E2 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + CD7CD60427F76AAB00C380E2 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = ""; }; + CD7CD60927F76AAB00C380E2 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + CD7CD60B27F76AAB00C380E2 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + CD7CD60E27F76AAB00C380E2 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + CD7CD61027F76AAB00C380E2 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + CD7CD61527F76AAB00C380E2 /* SearchPageTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SearchPageTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + CD7CD61927F76AAB00C380E2 /* SearchPageTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SearchPageTests.swift; sourceTree = ""; }; + CD7CD61F27F76AAC00C380E2 /* SearchPageUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SearchPageUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + CD7CD62327F76AAC00C380E2 /* SearchPageUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SearchPageUITests.swift; sourceTree = ""; }; + CD7CD62527F76AAC00C380E2 /* SearchPageUITestsLaunchTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SearchPageUITestsLaunchTests.swift; sourceTree = ""; }; + CD7CD63227F76AEB00C380E2 /* SearchPageVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SearchPageVC.swift; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + CD7CD5FC27F76AAB00C380E2 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + CD7CD61227F76AAB00C380E2 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + CD7CD61C27F76AAC00C380E2 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + CD7CD5F627F76AAB00C380E2 = { + isa = PBXGroup; + children = ( + CD7CD60127F76AAB00C380E2 /* SearchPage */, + CD7CD61827F76AAB00C380E2 /* SearchPageTests */, + CD7CD62227F76AAC00C380E2 /* SearchPageUITests */, + CD7CD60027F76AAB00C380E2 /* Products */, + ); + sourceTree = ""; + }; + CD7CD60027F76AAB00C380E2 /* Products */ = { + isa = PBXGroup; + children = ( + CD7CD5FF27F76AAB00C380E2 /* SearchPage.app */, + CD7CD61527F76AAB00C380E2 /* SearchPageTests.xctest */, + CD7CD61F27F76AAC00C380E2 /* SearchPageUITests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + CD7CD60127F76AAB00C380E2 /* SearchPage */ = { + isa = PBXGroup; + children = ( + CD7CD63427F76B1A00C380E2 /* ViewController */, + CD7CD60227F76AAB00C380E2 /* AppDelegate.swift */, + CD7CD60427F76AAB00C380E2 /* SceneDelegate.swift */, + CD7CD60827F76AAB00C380E2 /* Main.storyboard */, + CD7CD60B27F76AAB00C380E2 /* Assets.xcassets */, + CD7CD60D27F76AAB00C380E2 /* LaunchScreen.storyboard */, + CD7CD61027F76AAB00C380E2 /* Info.plist */, + ); + path = SearchPage; + sourceTree = ""; + }; + CD7CD61827F76AAB00C380E2 /* SearchPageTests */ = { + isa = PBXGroup; + children = ( + CD7CD61927F76AAB00C380E2 /* SearchPageTests.swift */, + ); + path = SearchPageTests; + sourceTree = ""; + }; + CD7CD62227F76AAC00C380E2 /* SearchPageUITests */ = { + isa = PBXGroup; + children = ( + CD7CD62327F76AAC00C380E2 /* SearchPageUITests.swift */, + CD7CD62527F76AAC00C380E2 /* SearchPageUITestsLaunchTests.swift */, + ); + path = SearchPageUITests; + sourceTree = ""; + }; + CD7CD63427F76B1A00C380E2 /* ViewController */ = { + isa = PBXGroup; + children = ( + CD7CD63227F76AEB00C380E2 /* SearchPageVC.swift */, + ); + path = ViewController; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + CD7CD5FE27F76AAB00C380E2 /* SearchPage */ = { + isa = PBXNativeTarget; + buildConfigurationList = CD7CD62927F76AAC00C380E2 /* Build configuration list for PBXNativeTarget "SearchPage" */; + buildPhases = ( + CD7CD5FB27F76AAB00C380E2 /* Sources */, + CD7CD5FC27F76AAB00C380E2 /* Frameworks */, + CD7CD5FD27F76AAB00C380E2 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = SearchPage; + productName = SearchPage; + productReference = CD7CD5FF27F76AAB00C380E2 /* SearchPage.app */; + productType = "com.apple.product-type.application"; + }; + CD7CD61427F76AAB00C380E2 /* SearchPageTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = CD7CD62C27F76AAC00C380E2 /* Build configuration list for PBXNativeTarget "SearchPageTests" */; + buildPhases = ( + CD7CD61127F76AAB00C380E2 /* Sources */, + CD7CD61227F76AAB00C380E2 /* Frameworks */, + CD7CD61327F76AAB00C380E2 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + CD7CD61727F76AAB00C380E2 /* PBXTargetDependency */, + ); + name = SearchPageTests; + productName = SearchPageTests; + productReference = CD7CD61527F76AAB00C380E2 /* SearchPageTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + CD7CD61E27F76AAC00C380E2 /* SearchPageUITests */ = { + isa = PBXNativeTarget; + buildConfigurationList = CD7CD62F27F76AAC00C380E2 /* Build configuration list for PBXNativeTarget "SearchPageUITests" */; + buildPhases = ( + CD7CD61B27F76AAC00C380E2 /* Sources */, + CD7CD61C27F76AAC00C380E2 /* Frameworks */, + CD7CD61D27F76AAC00C380E2 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + CD7CD62127F76AAC00C380E2 /* PBXTargetDependency */, + ); + name = SearchPageUITests; + productName = SearchPageUITests; + productReference = CD7CD61F27F76AAC00C380E2 /* SearchPageUITests.xctest */; + productType = "com.apple.product-type.bundle.ui-testing"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + CD7CD5F727F76AAB00C380E2 /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = 1; + LastSwiftUpdateCheck = 1330; + LastUpgradeCheck = 1330; + TargetAttributes = { + CD7CD5FE27F76AAB00C380E2 = { + CreatedOnToolsVersion = 13.3; + }; + CD7CD61427F76AAB00C380E2 = { + CreatedOnToolsVersion = 13.3; + TestTargetID = CD7CD5FE27F76AAB00C380E2; + }; + CD7CD61E27F76AAC00C380E2 = { + CreatedOnToolsVersion = 13.3; + TestTargetID = CD7CD5FE27F76AAB00C380E2; + }; + }; + }; + buildConfigurationList = CD7CD5FA27F76AAB00C380E2 /* Build configuration list for PBXProject "SearchPage" */; + compatibilityVersion = "Xcode 13.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = CD7CD5F627F76AAB00C380E2; + productRefGroup = CD7CD60027F76AAB00C380E2 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + CD7CD5FE27F76AAB00C380E2 /* SearchPage */, + CD7CD61427F76AAB00C380E2 /* SearchPageTests */, + CD7CD61E27F76AAC00C380E2 /* SearchPageUITests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + CD7CD5FD27F76AAB00C380E2 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + CD7CD60F27F76AAB00C380E2 /* LaunchScreen.storyboard in Resources */, + CD7CD60C27F76AAB00C380E2 /* Assets.xcassets in Resources */, + CD7CD60A27F76AAB00C380E2 /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + CD7CD61327F76AAB00C380E2 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + CD7CD61D27F76AAC00C380E2 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + CD7CD5FB27F76AAB00C380E2 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + CD7CD60327F76AAB00C380E2 /* AppDelegate.swift in Sources */, + CD7CD60527F76AAB00C380E2 /* SceneDelegate.swift in Sources */, + CD7CD63327F76AEB00C380E2 /* SearchPageVC.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + CD7CD61127F76AAB00C380E2 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + CD7CD61A27F76AAB00C380E2 /* SearchPageTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + CD7CD61B27F76AAC00C380E2 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + CD7CD62427F76AAC00C380E2 /* SearchPageUITests.swift in Sources */, + CD7CD62627F76AAC00C380E2 /* SearchPageUITestsLaunchTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + CD7CD61727F76AAB00C380E2 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = CD7CD5FE27F76AAB00C380E2 /* SearchPage */; + targetProxy = CD7CD61627F76AAB00C380E2 /* PBXContainerItemProxy */; + }; + CD7CD62127F76AAC00C380E2 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = CD7CD5FE27F76AAB00C380E2 /* SearchPage */; + targetProxy = CD7CD62027F76AAC00C380E2 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + CD7CD60827F76AAB00C380E2 /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + CD7CD60927F76AAB00C380E2 /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + CD7CD60D27F76AAB00C380E2 /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + CD7CD60E27F76AAB00C380E2 /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + CD7CD62727F76AAC00C380E2 /* 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++17"; + 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 = 15.4; + 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; + }; + CD7CD62827F76AAC00C380E2 /* 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++17"; + 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 = 15.4; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + CD7CD62A27F76AAC00C380E2 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = G8XX337GMH; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = SearchPage/Info.plist; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen; + INFOPLIST_KEY_UIMainStoryboardFile = Main; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = jade.SearchPage; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + CD7CD62B27F76AAC00C380E2 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = G8XX337GMH; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = SearchPage/Info.plist; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen; + INFOPLIST_KEY_UIMainStoryboardFile = Main; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = jade.SearchPage; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; + CD7CD62D27F76AAC00C380E2 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = G8XX337GMH; + GENERATE_INFOPLIST_FILE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 15.4; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = jade.SearchPageTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SearchPage.app/SearchPage"; + }; + name = Debug; + }; + CD7CD62E27F76AAC00C380E2 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = G8XX337GMH; + GENERATE_INFOPLIST_FILE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 15.4; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = jade.SearchPageTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SearchPage.app/SearchPage"; + }; + name = Release; + }; + CD7CD63027F76AAC00C380E2 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = G8XX337GMH; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = jade.SearchPageUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = SearchPage; + }; + name = Debug; + }; + CD7CD63127F76AAC00C380E2 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = G8XX337GMH; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = jade.SearchPageUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = SearchPage; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + CD7CD5FA27F76AAB00C380E2 /* Build configuration list for PBXProject "SearchPage" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + CD7CD62727F76AAC00C380E2 /* Debug */, + CD7CD62827F76AAC00C380E2 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + CD7CD62927F76AAC00C380E2 /* Build configuration list for PBXNativeTarget "SearchPage" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + CD7CD62A27F76AAC00C380E2 /* Debug */, + CD7CD62B27F76AAC00C380E2 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + CD7CD62C27F76AAC00C380E2 /* Build configuration list for PBXNativeTarget "SearchPageTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + CD7CD62D27F76AAC00C380E2 /* Debug */, + CD7CD62E27F76AAC00C380E2 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + CD7CD62F27F76AAC00C380E2 /* Build configuration list for PBXNativeTarget "SearchPageUITests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + CD7CD63027F76AAC00C380E2 /* Debug */, + CD7CD63127F76AAC00C380E2 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = CD7CD5F727F76AAB00C380E2 /* Project object */; +} diff --git a/jiwoo/week4/jadeSearchPage/SearchPage/SearchPage.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/jiwoo/week4/jadeSearchPage/SearchPage/SearchPage.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/jiwoo/week4/jadeSearchPage/SearchPage/SearchPage.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/jiwoo/week4/jadeSearchPage/SearchPage/SearchPage.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/jiwoo/week4/jadeSearchPage/SearchPage/SearchPage.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/jiwoo/week4/jadeSearchPage/SearchPage/SearchPage.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/jiwoo/week4/jadeSearchPage/SearchPage/SearchPage.xcodeproj/project.xcworkspace/xcuserdata/earlysummer.xcuserdatad/UserInterfaceState.xcuserstate b/jiwoo/week4/jadeSearchPage/SearchPage/SearchPage.xcodeproj/project.xcworkspace/xcuserdata/earlysummer.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000..28b2366 Binary files /dev/null and b/jiwoo/week4/jadeSearchPage/SearchPage/SearchPage.xcodeproj/project.xcworkspace/xcuserdata/earlysummer.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/jiwoo/week4/jadeSearchPage/SearchPage/SearchPage.xcodeproj/xcuserdata/earlysummer.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist b/jiwoo/week4/jadeSearchPage/SearchPage/SearchPage.xcodeproj/xcuserdata/earlysummer.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist new file mode 100644 index 0000000..70a91f9 --- /dev/null +++ b/jiwoo/week4/jadeSearchPage/SearchPage/SearchPage.xcodeproj/xcuserdata/earlysummer.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist @@ -0,0 +1,6 @@ + + + diff --git a/jiwoo/week4/jadeSearchPage/SearchPage/SearchPage.xcodeproj/xcuserdata/earlysummer.xcuserdatad/xcschemes/xcschememanagement.plist b/jiwoo/week4/jadeSearchPage/SearchPage/SearchPage.xcodeproj/xcuserdata/earlysummer.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..81629e0 --- /dev/null +++ b/jiwoo/week4/jadeSearchPage/SearchPage/SearchPage.xcodeproj/xcuserdata/earlysummer.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,14 @@ + + + + + SchemeUserState + + SearchPage.xcscheme_^#shared#^_ + + orderHint + 0 + + + + diff --git a/jiwoo/week4/jadeSearchPage/SearchPage/SearchPage/AppDelegate.swift b/jiwoo/week4/jadeSearchPage/SearchPage/SearchPage/AppDelegate.swift new file mode 100644 index 0000000..812f3b2 --- /dev/null +++ b/jiwoo/week4/jadeSearchPage/SearchPage/SearchPage/AppDelegate.swift @@ -0,0 +1,36 @@ +// +// AppDelegate.swift +// SearchPage +// +// Created by 황지우 on 2022/04/02. +// + +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/jiwoo/week4/jadeSearchPage/SearchPage/SearchPage/Assets.xcassets/AccentColor.colorset/Contents.json b/jiwoo/week4/jadeSearchPage/SearchPage/SearchPage/Assets.xcassets/AccentColor.colorset/Contents.json new file mode 100644 index 0000000..eb87897 --- /dev/null +++ b/jiwoo/week4/jadeSearchPage/SearchPage/SearchPage/Assets.xcassets/AccentColor.colorset/Contents.json @@ -0,0 +1,11 @@ +{ + "colors" : [ + { + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/jiwoo/week4/jadeSearchPage/SearchPage/SearchPage/Assets.xcassets/AppIcon.appiconset/Contents.json b/jiwoo/week4/jadeSearchPage/SearchPage/SearchPage/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..5a3257a --- /dev/null +++ b/jiwoo/week4/jadeSearchPage/SearchPage/SearchPage/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,93 @@ +{ + "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" : "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/jiwoo/week4/jadeSearchPage/SearchPage/SearchPage/Assets.xcassets/Contents.json b/jiwoo/week4/jadeSearchPage/SearchPage/SearchPage/Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/jiwoo/week4/jadeSearchPage/SearchPage/SearchPage/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/jiwoo/week4/jadeSearchPage/SearchPage/SearchPage/Base.lproj/LaunchScreen.storyboard b/jiwoo/week4/jadeSearchPage/SearchPage/SearchPage/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..865e932 --- /dev/null +++ b/jiwoo/week4/jadeSearchPage/SearchPage/SearchPage/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/jiwoo/week4/jadeSearchPage/SearchPage/SearchPage/Base.lproj/Main.storyboard b/jiwoo/week4/jadeSearchPage/SearchPage/SearchPage/Base.lproj/Main.storyboard new file mode 100644 index 0000000..b2cb559 --- /dev/null +++ b/jiwoo/week4/jadeSearchPage/SearchPage/SearchPage/Base.lproj/Main.storyboard @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/jiwoo/week4/jadeSearchPage/SearchPage/SearchPage/Info.plist b/jiwoo/week4/jadeSearchPage/SearchPage/SearchPage/Info.plist new file mode 100644 index 0000000..dd3c9af --- /dev/null +++ b/jiwoo/week4/jadeSearchPage/SearchPage/SearchPage/Info.plist @@ -0,0 +1,25 @@ + + + + + UIApplicationSceneManifest + + UIApplicationSupportsMultipleScenes + + UISceneConfigurations + + UIWindowSceneSessionRoleApplication + + + UISceneConfigurationName + Default Configuration + UISceneDelegateClassName + $(PRODUCT_MODULE_NAME).SceneDelegate + UISceneStoryboardFile + Main + + + + + + diff --git a/jiwoo/week4/jadeSearchPage/SearchPage/SearchPage/SceneDelegate.swift b/jiwoo/week4/jadeSearchPage/SearchPage/SearchPage/SceneDelegate.swift new file mode 100644 index 0000000..867f817 --- /dev/null +++ b/jiwoo/week4/jadeSearchPage/SearchPage/SearchPage/SceneDelegate.swift @@ -0,0 +1,52 @@ +// +// SceneDelegate.swift +// SearchPage +// +// Created by 황지우 on 2022/04/02. +// + +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/jiwoo/week4/jadeSearchPage/SearchPage/SearchPage/ViewController.swift b/jiwoo/week4/jadeSearchPage/SearchPage/SearchPage/ViewController.swift new file mode 100644 index 0000000..c178146 --- /dev/null +++ b/jiwoo/week4/jadeSearchPage/SearchPage/SearchPage/ViewController.swift @@ -0,0 +1,19 @@ +// +// ViewController.swift +// SearchPage +// +// Created by 황지우 on 2022/04/02. +// + +import UIKit + +class ViewController: UIViewController { + + override func viewDidLoad() { + super.viewDidLoad() + // Do any additional setup after loading the view. + } + + +} + diff --git a/jiwoo/week4/jadeSearchPage/SearchPage/SearchPage/ViewController/SearchPageVC.swift b/jiwoo/week4/jadeSearchPage/SearchPage/SearchPage/ViewController/SearchPageVC.swift new file mode 100644 index 0000000..bf50b04 --- /dev/null +++ b/jiwoo/week4/jadeSearchPage/SearchPage/SearchPage/ViewController/SearchPageVC.swift @@ -0,0 +1,86 @@ +// +// SearchPageVC.swift +// SearchPage +// +// Created by 황지우 on 2022/04/02. +// + +import UIKit + +class SearchPageVC: UIViewController, UICollectionViewDelegate,UICollectionViewDelegateFlowLayout, UICollectionViewDataSource { + + //UICollectionViewDataSource + + var searchTermList : [String] = ["누룽지","바보","사랑","라면","포켓몬빵","배고프다","김치만두","우동"] + + func ListInfo (at index : Int) -> String { + return searchTermDataList[index].title + + } + + var searchTermDataList : [SearchTermData] = [SearchTermData(title: "누룽지", isDeleteButtonPressed: false),SearchTermData(title: "바보", isDeleteButtonPressed: false),SearchTermData(title: "사랑", isDeleteButtonPressed: false),SearchTermData(title: "라면", isDeleteButtonPressed: false),SearchTermData(title: "포켓몬빵", isDeleteButtonPressed: false),SearchTermData(title: "배고파", isDeleteButtonPressed: false),SearchTermData(title: "김치만두", isDeleteButtonPressed: false),SearchTermData(title: "우동", isDeleteButtonPressed: false)] + + + + func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int { + return searchTermDataList.count + } + + func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell { + guard let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "SearchTermCell", for: indexPath) as? SearchTermCell else {return UICollectionViewCell()} + // 만약 해당 셀에 있는 엑스버튼 눌리면 해당 셀 사라지기 +// if searchTermDataList[indexPath.item].isDeleteButtonPressed == true { +// searchTermDataList.remove(at: indexPath.item) +// } + let cellData = ListInfo(at: indexPath.item) + cell.updateCell(data: cellData) + + return cell + } + + // UICollectionViewDelegateFlowLayout + func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize { + //let itemSpacing : CGFloat = 10 + let width:CGFloat = searchTermDataList[indexPath.item].title.size(withAttributes: [NSAttributedString.Key.font : UIFont.systemFont(ofSize: 14)]).width + 50 + let height:CGFloat = collectionView.bounds.height + return CGSize(width: width, height: height) + } + + + + + override func viewDidLoad() { + super.viewDidLoad() + + // Do any additional setup after loading the view. + } + + + +} + +class SearchTermCell : UICollectionViewCell{ + + @IBOutlet weak var searchTermLabel: UILabel! + @IBAction func dissmissButtonPressed(_ sender: IndexPath) { + + + } + func updateCell (data : String) { + searchTermLabel.text = data + searchTermLabel.sizeToFit() + } +} + + +struct SearchTermData { + var title : String + var isDeleteButtonPressed : Bool = false + + init (title : String, isDeleteButtonPressed : Bool) { + self.title = title + self.isDeleteButtonPressed = isDeleteButtonPressed + } +} + + diff --git a/jiwoo/week4/jadeSearchPage/SearchPage/SearchPageTests/SearchPageTests.swift b/jiwoo/week4/jadeSearchPage/SearchPage/SearchPageTests/SearchPageTests.swift new file mode 100644 index 0000000..db22d58 --- /dev/null +++ b/jiwoo/week4/jadeSearchPage/SearchPage/SearchPageTests/SearchPageTests.swift @@ -0,0 +1,36 @@ +// +// SearchPageTests.swift +// SearchPageTests +// +// Created by 황지우 on 2022/04/02. +// + +import XCTest +@testable import SearchPage + +class SearchPageTests: XCTestCase { + + override func setUpWithError() throws { + // Put setup code here. This method is called before the invocation of each test method in the class. + } + + override func tearDownWithError() throws { + // Put teardown code here. This method is called after the invocation of each test method in the class. + } + + func testExample() throws { + // This is an example of a functional test case. + // Use XCTAssert and related functions to verify your tests produce the correct results. + // Any test you write for XCTest can be annotated as throws and async. + // Mark your test throws to produce an unexpected failure when your test encounters an uncaught error. + // Mark your test async to allow awaiting for asynchronous code to complete. Check the results with assertions afterwards. + } + + func testPerformanceExample() throws { + // 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/jiwoo/week4/jadeSearchPage/SearchPage/SearchPageUITests/SearchPageUITests.swift b/jiwoo/week4/jadeSearchPage/SearchPage/SearchPageUITests/SearchPageUITests.swift new file mode 100644 index 0000000..55d7630 --- /dev/null +++ b/jiwoo/week4/jadeSearchPage/SearchPage/SearchPageUITests/SearchPageUITests.swift @@ -0,0 +1,41 @@ +// +// SearchPageUITests.swift +// SearchPageUITests +// +// Created by 황지우 on 2022/04/02. +// + +import XCTest + +class SearchPageUITests: XCTestCase { + + override func setUpWithError() throws { + // 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 tearDownWithError() throws { + // Put teardown code here. This method is called after the invocation of each test method in the class. + } + + func testExample() throws { + // UI tests must launch the application that they test. + let app = XCUIApplication() + app.launch() + + // Use XCTAssert and related functions to verify your tests produce the correct results. + } + + func testLaunchPerformance() throws { + if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 7.0, *) { + // This measures how long it takes to launch your application. + measure(metrics: [XCTApplicationLaunchMetric()]) { + XCUIApplication().launch() + } + } + } +} diff --git a/jiwoo/week4/jadeSearchPage/SearchPage/SearchPageUITests/SearchPageUITestsLaunchTests.swift b/jiwoo/week4/jadeSearchPage/SearchPage/SearchPageUITests/SearchPageUITestsLaunchTests.swift new file mode 100644 index 0000000..a684cd9 --- /dev/null +++ b/jiwoo/week4/jadeSearchPage/SearchPage/SearchPageUITests/SearchPageUITestsLaunchTests.swift @@ -0,0 +1,32 @@ +// +// SearchPageUITestsLaunchTests.swift +// SearchPageUITests +// +// Created by 황지우 on 2022/04/02. +// + +import XCTest + +class SearchPageUITestsLaunchTests: XCTestCase { + + override class var runsForEachTargetApplicationUIConfiguration: Bool { + true + } + + override func setUpWithError() throws { + continueAfterFailure = false + } + + func testLaunch() throws { + let app = XCUIApplication() + app.launch() + + // Insert steps here to perform after app launch but before taking a screenshot, + // such as logging into a test account or navigating somewhere in the app + + let attachment = XCTAttachment(screenshot: app.screenshot()) + attachment.name = "Launch Screen" + attachment.lifetime = .keepAlways + add(attachment) + } +}