diff --git a/README.md b/README.md deleted file mode 100644 index 2f1e30e..0000000 --- a/README.md +++ /dev/null @@ -1,33 +0,0 @@ -# 🍎 iOS_Study_A -SSUMC 5기 iOS 스터디 A조 - -![umc+logo](https://github.com/SSUMC-5th-iOS/iOS_Study_A/assets/84546438/ae41d05c-6f71-47bc-9944-84230b5d4dd6) - -## 💻 Member -| 김수민 | 김민지 | 박현수 | 신혜림 | -| :---------:|:----------:|:----------:|:----------:| -| 루시 | 미니 | 숲 | 제로 | -| [kimsoomin20221789](https://github.com/kimsoomin20221789) | [kxmmxnzx](https://github.com/kxmmxnzx) | [00yhsp](https://github.com/00yhsp) | [tlsgPFla](https://github.com/tlsgPFla) | - -## 📖 Workbook (프리마스터) -| 주차 | 내용 | 미션 | -| --- | --- | --- | -| 1주차 | `Platform` | 배달의 민족 홈 화면 구현하기(1) | -| 2주차 | `AutoLayout` | 배달의 민족 홈 화면 구현하기(2) | -| 3주차 | `TableView & CollectionView` | 당근마켓 홈 화면 구현하기(1) | -| 4주차 | `ScrollView` | 당근마켓 홈 화면 구현하기(2) | -| 5주차 | `View Transition with Data` | 배달의 민족 장바구니로 데이터 넘기 | -| 6주차 | `Open Source` | 라이브러리 2개 이상 사용해서 뷰 만들기 | -| 7주차 | `Token & Social Login` | 카카오 로그인 구현하기 | -| 8주차 | `DB & DBMS` | 간단한 로그인, 회원가입 화면 만들기 - UserDefaults | -| 9주차 | `Network` | Open API 활용하기 | -| 9주차 | `Instagram Clone Coding` | 인스타그램 클론 코딩하기 | - -## 🌳 branch 규칙 -`닉네임/주차` - - - ex) bibi/week1 - -## 👾 Udemy -- https://www.udemy.com/course/comgongbro_ios_clonecoding/ diff --git a/iOS_Study_A.xcodeproj/project.pbxproj b/iOS_Study_A.xcodeproj/project.pbxproj deleted file mode 100644 index 1f5c336..0000000 --- a/iOS_Study_A.xcodeproj/project.pbxproj +++ /dev/null @@ -1,361 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 56; - objects = { - -/* Begin PBXBuildFile section */ - 954B6B612AC57BE100FDCFAB /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 954B6B602AC57BE100FDCFAB /* AppDelegate.swift */; }; - 954B6B632AC57BE100FDCFAB /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 954B6B622AC57BE100FDCFAB /* SceneDelegate.swift */; }; - 954B6B652AC57BE100FDCFAB /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 954B6B642AC57BE100FDCFAB /* ViewController.swift */; }; - 954B6B682AC57BE100FDCFAB /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 954B6B662AC57BE100FDCFAB /* Main.storyboard */; }; - 954B6B6A2AC57BE200FDCFAB /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 954B6B692AC57BE200FDCFAB /* Assets.xcassets */; }; - 954B6B6D2AC57BE200FDCFAB /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 954B6B6B2AC57BE200FDCFAB /* LaunchScreen.storyboard */; }; -/* End PBXBuildFile section */ - -/* Begin PBXFileReference section */ - 954B6B5D2AC57BE100FDCFAB /* iOS_Study_A.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = iOS_Study_A.app; sourceTree = BUILT_PRODUCTS_DIR; }; - 954B6B602AC57BE100FDCFAB /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; - 954B6B622AC57BE100FDCFAB /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = ""; }; - 954B6B642AC57BE100FDCFAB /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; - 954B6B672AC57BE100FDCFAB /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; - 954B6B692AC57BE200FDCFAB /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; - 954B6B6C2AC57BE200FDCFAB /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; - 954B6B6E2AC57BE200FDCFAB /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 954B6B5A2AC57BE100FDCFAB /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 954B6B542AC57BE100FDCFAB = { - isa = PBXGroup; - children = ( - 954B6B5F2AC57BE100FDCFAB /* iOS_Study_A */, - 954B6B5E2AC57BE100FDCFAB /* Products */, - ); - sourceTree = ""; - }; - 954B6B5E2AC57BE100FDCFAB /* Products */ = { - isa = PBXGroup; - children = ( - 954B6B5D2AC57BE100FDCFAB /* iOS_Study_A.app */, - ); - name = Products; - sourceTree = ""; - }; - 954B6B5F2AC57BE100FDCFAB /* iOS_Study_A */ = { - isa = PBXGroup; - children = ( - 954B6B602AC57BE100FDCFAB /* AppDelegate.swift */, - 954B6B622AC57BE100FDCFAB /* SceneDelegate.swift */, - 954B6B642AC57BE100FDCFAB /* ViewController.swift */, - 954B6B662AC57BE100FDCFAB /* Main.storyboard */, - 954B6B692AC57BE200FDCFAB /* Assets.xcassets */, - 954B6B6B2AC57BE200FDCFAB /* LaunchScreen.storyboard */, - 954B6B6E2AC57BE200FDCFAB /* Info.plist */, - ); - path = iOS_Study_A; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - 954B6B5C2AC57BE100FDCFAB /* iOS_Study_A */ = { - isa = PBXNativeTarget; - buildConfigurationList = 954B6B712AC57BE200FDCFAB /* Build configuration list for PBXNativeTarget "iOS_Study_A" */; - buildPhases = ( - 954B6B592AC57BE100FDCFAB /* Sources */, - 954B6B5A2AC57BE100FDCFAB /* Frameworks */, - 954B6B5B2AC57BE100FDCFAB /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = iOS_Study_A; - productName = iOS_Study_A; - productReference = 954B6B5D2AC57BE100FDCFAB /* iOS_Study_A.app */; - productType = "com.apple.product-type.application"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 954B6B552AC57BE100FDCFAB /* Project object */ = { - isa = PBXProject; - attributes = { - BuildIndependentTargetsInParallel = 1; - LastSwiftUpdateCheck = 1430; - LastUpgradeCheck = 1430; - TargetAttributes = { - 954B6B5C2AC57BE100FDCFAB = { - CreatedOnToolsVersion = 14.3.1; - }; - }; - }; - buildConfigurationList = 954B6B582AC57BE100FDCFAB /* Build configuration list for PBXProject "iOS_Study_A" */; - compatibilityVersion = "Xcode 14.0"; - developmentRegion = en; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = 954B6B542AC57BE100FDCFAB; - productRefGroup = 954B6B5E2AC57BE100FDCFAB /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 954B6B5C2AC57BE100FDCFAB /* iOS_Study_A */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 954B6B5B2AC57BE100FDCFAB /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 954B6B6D2AC57BE200FDCFAB /* LaunchScreen.storyboard in Resources */, - 954B6B6A2AC57BE200FDCFAB /* Assets.xcassets in Resources */, - 954B6B682AC57BE100FDCFAB /* Main.storyboard in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 954B6B592AC57BE100FDCFAB /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 954B6B652AC57BE100FDCFAB /* ViewController.swift in Sources */, - 954B6B612AC57BE100FDCFAB /* AppDelegate.swift in Sources */, - 954B6B632AC57BE100FDCFAB /* SceneDelegate.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXVariantGroup section */ - 954B6B662AC57BE100FDCFAB /* Main.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 954B6B672AC57BE100FDCFAB /* Base */, - ); - name = Main.storyboard; - sourceTree = ""; - }; - 954B6B6B2AC57BE200FDCFAB /* LaunchScreen.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 954B6B6C2AC57BE200FDCFAB /* Base */, - ); - name = LaunchScreen.storyboard; - sourceTree = ""; - }; -/* End PBXVariantGroup section */ - -/* Begin XCBuildConfiguration section */ - 954B6B6F2AC57BE200FDCFAB /* 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++20"; - 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 = 16.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; - }; - 954B6B702AC57BE200FDCFAB /* 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++20"; - 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 = 16.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; - }; - 954B6B722AC57BE200FDCFAB /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; - CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 1; - GENERATE_INFOPLIST_FILE = YES; - INFOPLIST_FILE = iOS_Study_A/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 = "jiyoon.iOS-Study-A"; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_EMIT_LOC_STRINGS = YES; - SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Debug; - }; - 954B6B732AC57BE200FDCFAB /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; - CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 1; - GENERATE_INFOPLIST_FILE = YES; - INFOPLIST_FILE = iOS_Study_A/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 = "jiyoon.iOS-Study-A"; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_EMIT_LOC_STRINGS = YES; - SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 954B6B582AC57BE100FDCFAB /* Build configuration list for PBXProject "iOS_Study_A" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 954B6B6F2AC57BE200FDCFAB /* Debug */, - 954B6B702AC57BE200FDCFAB /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 954B6B712AC57BE200FDCFAB /* Build configuration list for PBXNativeTarget "iOS_Study_A" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 954B6B722AC57BE200FDCFAB /* Debug */, - 954B6B732AC57BE200FDCFAB /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = 954B6B552AC57BE100FDCFAB /* Project object */; -} diff --git a/iOS_Study_A.xcodeproj/xcuserdata/jiyoon.xcuserdatad/xcschemes/xcschememanagement.plist b/iOS_Study_A.xcodeproj/xcuserdata/jiyoon.xcuserdatad/xcschemes/xcschememanagement.plist deleted file mode 100644 index d6ece4b..0000000 --- a/iOS_Study_A.xcodeproj/xcuserdata/jiyoon.xcuserdatad/xcschemes/xcschememanagement.plist +++ /dev/null @@ -1,14 +0,0 @@ - - - - - SchemeUserState - - iOS_Study_A.xcscheme_^#shared#^_ - - orderHint - 0 - - - - diff --git a/iOS_Study_A/AppDelegate.swift b/iOS_Study_A/AppDelegate.swift deleted file mode 100644 index a37563b..0000000 --- a/iOS_Study_A/AppDelegate.swift +++ /dev/null @@ -1,36 +0,0 @@ -// -// AppDelegate.swift -// iOS_Study_A -// -// Created by 박지윤 on 2023/09/28. -// - -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/iOS_Study_A/Base.lproj/LaunchScreen.storyboard b/iOS_Study_A/Base.lproj/LaunchScreen.storyboard deleted file mode 100644 index 865e932..0000000 --- a/iOS_Study_A/Base.lproj/LaunchScreen.storyboard +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/iOS_Study_A/Base.lproj/Main.storyboard b/iOS_Study_A/Base.lproj/Main.storyboard deleted file mode 100644 index 25a7638..0000000 --- a/iOS_Study_A/Base.lproj/Main.storyboard +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/iOS_Study_A/Info.plist b/iOS_Study_A/Info.plist deleted file mode 100644 index dd3c9af..0000000 --- a/iOS_Study_A/Info.plist +++ /dev/null @@ -1,25 +0,0 @@ - - - - - UIApplicationSceneManifest - - UIApplicationSupportsMultipleScenes - - UISceneConfigurations - - UIWindowSceneSessionRoleApplication - - - UISceneConfigurationName - Default Configuration - UISceneDelegateClassName - $(PRODUCT_MODULE_NAME).SceneDelegate - UISceneStoryboardFile - Main - - - - - - diff --git a/iOS_Study_A/SceneDelegate.swift b/iOS_Study_A/SceneDelegate.swift deleted file mode 100644 index aaf78de..0000000 --- a/iOS_Study_A/SceneDelegate.swift +++ /dev/null @@ -1,52 +0,0 @@ -// -// SceneDelegate.swift -// iOS_Study_A -// -// Created by 박지윤 on 2023/09/28. -// - -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/iOS_Study_A/ViewController.swift b/iOS_Study_A/ViewController.swift deleted file mode 100644 index 0804a27..0000000 --- a/iOS_Study_A/ViewController.swift +++ /dev/null @@ -1,19 +0,0 @@ -// -// ViewController.swift -// iOS_Study_A -// -// Created by 박지윤 on 2023/09/28. -// - -import UIKit - -class ViewController: UIViewController { - - override func viewDidLoad() { - super.viewDidLoad() - // Do any additional setup after loading the view. - } - - -} - diff --git a/week10/week10.xcodeproj/project.pbxproj b/week10/week10.xcodeproj/project.pbxproj new file mode 100644 index 0000000..45eddd2 --- /dev/null +++ b/week10/week10.xcodeproj/project.pbxproj @@ -0,0 +1,447 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 56; + objects = { + +/* Begin PBXBuildFile section */ + DF1092802B17909E00A0CA02 /* week10App.swift in Sources */ = {isa = PBXBuildFile; fileRef = DF10927F2B17909E00A0CA02 /* week10App.swift */; }; + DF1092822B17909E00A0CA02 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = DF1092812B17909E00A0CA02 /* ContentView.swift */; }; + DF1092842B17909F00A0CA02 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = DF1092832B17909F00A0CA02 /* Assets.xcassets */; }; + DF1092872B17909F00A0CA02 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = DF1092862B17909F00A0CA02 /* Preview Assets.xcassets */; }; + DF10928F2B17948A00A0CA02 /* CombineMoya in Frameworks */ = {isa = PBXBuildFile; productRef = DF10928E2B17948A00A0CA02 /* CombineMoya */; }; + DF1092912B17948A00A0CA02 /* Moya in Frameworks */ = {isa = PBXBuildFile; productRef = DF1092902B17948A00A0CA02 /* Moya */; }; + DF1092932B17948A00A0CA02 /* ReactiveMoya in Frameworks */ = {isa = PBXBuildFile; productRef = DF1092922B17948A00A0CA02 /* ReactiveMoya */; }; + DF1092952B17948A00A0CA02 /* RxMoya in Frameworks */ = {isa = PBXBuildFile; productRef = DF1092942B17948A00A0CA02 /* RxMoya */; }; + DF1092982B17AACF00A0CA02 /* Alamofire in Frameworks */ = {isa = PBXBuildFile; productRef = DF1092972B17AACF00A0CA02 /* Alamofire */; }; + DF10929C2B17AFAA00A0CA02 /* KakaoSDK in Frameworks */ = {isa = PBXBuildFile; productRef = DF10929B2B17AFAA00A0CA02 /* KakaoSDK */; }; + DF10929E2B17AFAA00A0CA02 /* KakaoSDKAuth in Frameworks */ = {isa = PBXBuildFile; productRef = DF10929D2B17AFAA00A0CA02 /* KakaoSDKAuth */; }; + DF1092A02B17AFAA00A0CA02 /* KakaoSDKUser in Frameworks */ = {isa = PBXBuildFile; productRef = DF10929F2B17AFAA00A0CA02 /* KakaoSDKUser */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + DF10927C2B17909E00A0CA02 /* week10.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = week10.app; sourceTree = BUILT_PRODUCTS_DIR; }; + DF10927F2B17909E00A0CA02 /* week10App.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = week10App.swift; sourceTree = ""; }; + DF1092812B17909E00A0CA02 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; }; + DF1092832B17909F00A0CA02 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + DF1092862B17909F00A0CA02 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; + DF1092992B17AF6000A0CA02 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist; path = Info.plist; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + DF1092792B17909E00A0CA02 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + DF10929E2B17AFAA00A0CA02 /* KakaoSDKAuth in Frameworks */, + DF1092982B17AACF00A0CA02 /* Alamofire in Frameworks */, + DF1092912B17948A00A0CA02 /* Moya in Frameworks */, + DF10928F2B17948A00A0CA02 /* CombineMoya in Frameworks */, + DF1092A02B17AFAA00A0CA02 /* KakaoSDKUser in Frameworks */, + DF1092952B17948A00A0CA02 /* RxMoya in Frameworks */, + DF1092932B17948A00A0CA02 /* ReactiveMoya in Frameworks */, + DF10929C2B17AFAA00A0CA02 /* KakaoSDK in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + DF1092732B17909E00A0CA02 = { + isa = PBXGroup; + children = ( + DF10927E2B17909E00A0CA02 /* week10 */, + DF10927D2B17909E00A0CA02 /* Products */, + ); + sourceTree = ""; + }; + DF10927D2B17909E00A0CA02 /* Products */ = { + isa = PBXGroup; + children = ( + DF10927C2B17909E00A0CA02 /* week10.app */, + ); + name = Products; + sourceTree = ""; + }; + DF10927E2B17909E00A0CA02 /* week10 */ = { + isa = PBXGroup; + children = ( + DF1092992B17AF6000A0CA02 /* Info.plist */, + DF10927F2B17909E00A0CA02 /* week10App.swift */, + DF1092812B17909E00A0CA02 /* ContentView.swift */, + DF1092832B17909F00A0CA02 /* Assets.xcassets */, + DF1092852B17909F00A0CA02 /* Preview Content */, + ); + path = week10; + sourceTree = ""; + }; + DF1092852B17909F00A0CA02 /* Preview Content */ = { + isa = PBXGroup; + children = ( + DF1092862B17909F00A0CA02 /* Preview Assets.xcassets */, + ); + path = "Preview Content"; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + DF10927B2B17909E00A0CA02 /* week10 */ = { + isa = PBXNativeTarget; + buildConfigurationList = DF10928A2B17909F00A0CA02 /* Build configuration list for PBXNativeTarget "week10" */; + buildPhases = ( + DF1092782B17909E00A0CA02 /* Sources */, + DF1092792B17909E00A0CA02 /* Frameworks */, + DF10927A2B17909E00A0CA02 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = week10; + packageProductDependencies = ( + DF10928E2B17948A00A0CA02 /* CombineMoya */, + DF1092902B17948A00A0CA02 /* Moya */, + DF1092922B17948A00A0CA02 /* ReactiveMoya */, + DF1092942B17948A00A0CA02 /* RxMoya */, + DF1092972B17AACF00A0CA02 /* Alamofire */, + DF10929B2B17AFAA00A0CA02 /* KakaoSDK */, + DF10929D2B17AFAA00A0CA02 /* KakaoSDKAuth */, + DF10929F2B17AFAA00A0CA02 /* KakaoSDKUser */, + ); + productName = week10; + productReference = DF10927C2B17909E00A0CA02 /* week10.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + DF1092742B17909E00A0CA02 /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = 1; + LastSwiftUpdateCheck = 1430; + LastUpgradeCheck = 1430; + TargetAttributes = { + DF10927B2B17909E00A0CA02 = { + CreatedOnToolsVersion = 14.3.1; + }; + }; + }; + buildConfigurationList = DF1092772B17909E00A0CA02 /* Build configuration list for PBXProject "week10" */; + compatibilityVersion = "Xcode 14.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = DF1092732B17909E00A0CA02; + packageReferences = ( + DF10928D2B17948A00A0CA02 /* XCRemoteSwiftPackageReference "Moya" */, + DF1092962B17AACF00A0CA02 /* XCRemoteSwiftPackageReference "Alamofire" */, + DF10929A2B17AFAA00A0CA02 /* XCRemoteSwiftPackageReference "kakao-ios-sdk" */, + ); + productRefGroup = DF10927D2B17909E00A0CA02 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + DF10927B2B17909E00A0CA02 /* week10 */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + DF10927A2B17909E00A0CA02 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + DF1092872B17909F00A0CA02 /* Preview Assets.xcassets in Resources */, + DF1092842B17909F00A0CA02 /* Assets.xcassets in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + DF1092782B17909E00A0CA02 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + DF1092822B17909E00A0CA02 /* ContentView.swift in Sources */, + DF1092802B17909E00A0CA02 /* week10App.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin XCBuildConfiguration section */ + DF1092882B17909F00A0CA02 /* 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++20"; + 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 = 16.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; + }; + DF1092892B17909F00A0CA02 /* 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++20"; + 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 = 16.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; + }; + DF10928B2B17909F00A0CA02 /* 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_ASSET_PATHS = "\"week10/Preview Content\""; + ENABLE_PREVIEWS = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = week10/Info.plist; + INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UILaunchScreen_Generation = YES; + 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 = com.umcstudy.week10; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + DF10928C2B17909F00A0CA02 /* 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_ASSET_PATHS = "\"week10/Preview Content\""; + ENABLE_PREVIEWS = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = week10/Info.plist; + INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UILaunchScreen_Generation = YES; + 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 = com.umcstudy.week10; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + DF1092772B17909E00A0CA02 /* Build configuration list for PBXProject "week10" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + DF1092882B17909F00A0CA02 /* Debug */, + DF1092892B17909F00A0CA02 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + DF10928A2B17909F00A0CA02 /* Build configuration list for PBXNativeTarget "week10" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + DF10928B2B17909F00A0CA02 /* Debug */, + DF10928C2B17909F00A0CA02 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + +/* Begin XCRemoteSwiftPackageReference section */ + DF10928D2B17948A00A0CA02 /* XCRemoteSwiftPackageReference "Moya" */ = { + isa = XCRemoteSwiftPackageReference; + repositoryURL = "https://github.com/Moya/Moya.git"; + requirement = { + kind = upToNextMajorVersion; + minimumVersion = 15.0.0; + }; + }; + DF1092962B17AACF00A0CA02 /* XCRemoteSwiftPackageReference "Alamofire" */ = { + isa = XCRemoteSwiftPackageReference; + repositoryURL = "https://github.com/Alamofire/Alamofire.git"; + requirement = { + kind = upToNextMajorVersion; + minimumVersion = 5.0.0; + }; + }; + DF10929A2B17AFAA00A0CA02 /* XCRemoteSwiftPackageReference "kakao-ios-sdk" */ = { + isa = XCRemoteSwiftPackageReference; + repositoryURL = "https://github.com/kakao/kakao-ios-sdk"; + requirement = { + kind = upToNextMajorVersion; + minimumVersion = 2.0.0; + }; + }; +/* End XCRemoteSwiftPackageReference section */ + +/* Begin XCSwiftPackageProductDependency section */ + DF10928E2B17948A00A0CA02 /* CombineMoya */ = { + isa = XCSwiftPackageProductDependency; + package = DF10928D2B17948A00A0CA02 /* XCRemoteSwiftPackageReference "Moya" */; + productName = CombineMoya; + }; + DF1092902B17948A00A0CA02 /* Moya */ = { + isa = XCSwiftPackageProductDependency; + package = DF10928D2B17948A00A0CA02 /* XCRemoteSwiftPackageReference "Moya" */; + productName = Moya; + }; + DF1092922B17948A00A0CA02 /* ReactiveMoya */ = { + isa = XCSwiftPackageProductDependency; + package = DF10928D2B17948A00A0CA02 /* XCRemoteSwiftPackageReference "Moya" */; + productName = ReactiveMoya; + }; + DF1092942B17948A00A0CA02 /* RxMoya */ = { + isa = XCSwiftPackageProductDependency; + package = DF10928D2B17948A00A0CA02 /* XCRemoteSwiftPackageReference "Moya" */; + productName = RxMoya; + }; + DF1092972B17AACF00A0CA02 /* Alamofire */ = { + isa = XCSwiftPackageProductDependency; + package = DF1092962B17AACF00A0CA02 /* XCRemoteSwiftPackageReference "Alamofire" */; + productName = Alamofire; + }; + DF10929B2B17AFAA00A0CA02 /* KakaoSDK */ = { + isa = XCSwiftPackageProductDependency; + package = DF10929A2B17AFAA00A0CA02 /* XCRemoteSwiftPackageReference "kakao-ios-sdk" */; + productName = KakaoSDK; + }; + DF10929D2B17AFAA00A0CA02 /* KakaoSDKAuth */ = { + isa = XCSwiftPackageProductDependency; + package = DF10929A2B17AFAA00A0CA02 /* XCRemoteSwiftPackageReference "kakao-ios-sdk" */; + productName = KakaoSDKAuth; + }; + DF10929F2B17AFAA00A0CA02 /* KakaoSDKUser */ = { + isa = XCSwiftPackageProductDependency; + package = DF10929A2B17AFAA00A0CA02 /* XCRemoteSwiftPackageReference "kakao-ios-sdk" */; + productName = KakaoSDKUser; + }; +/* End XCSwiftPackageProductDependency section */ + }; + rootObject = DF1092742B17909E00A0CA02 /* Project object */; +} diff --git a/iOS_Study_A.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/week10/week10.xcodeproj/project.xcworkspace/contents.xcworkspacedata similarity index 100% rename from iOS_Study_A.xcodeproj/project.xcworkspace/contents.xcworkspacedata rename to week10/week10.xcodeproj/project.xcworkspace/contents.xcworkspacedata diff --git a/iOS_Study_A.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/week10/week10.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist similarity index 100% rename from iOS_Study_A.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist rename to week10/week10.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist diff --git a/iOS_Study_A/Assets.xcassets/AccentColor.colorset/Contents.json b/week10/week10/Assets.xcassets/AccentColor.colorset/Contents.json similarity index 100% rename from iOS_Study_A/Assets.xcassets/AccentColor.colorset/Contents.json rename to week10/week10/Assets.xcassets/AccentColor.colorset/Contents.json diff --git a/iOS_Study_A/Assets.xcassets/AppIcon.appiconset/Contents.json b/week10/week10/Assets.xcassets/AppIcon.appiconset/Contents.json similarity index 100% rename from iOS_Study_A/Assets.xcassets/AppIcon.appiconset/Contents.json rename to week10/week10/Assets.xcassets/AppIcon.appiconset/Contents.json diff --git a/iOS_Study_A/Assets.xcassets/Contents.json b/week10/week10/Assets.xcassets/Contents.json similarity index 100% rename from iOS_Study_A/Assets.xcassets/Contents.json rename to week10/week10/Assets.xcassets/Contents.json diff --git a/week10/week10/Assets.xcassets/kakao.imageset/Contents.json b/week10/week10/Assets.xcassets/kakao.imageset/Contents.json new file mode 100644 index 0000000..cb4b356 --- /dev/null +++ b/week10/week10/Assets.xcassets/kakao.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "kakao.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/week10/week10/Assets.xcassets/kakao.imageset/kakao.png b/week10/week10/Assets.xcassets/kakao.imageset/kakao.png new file mode 100644 index 0000000..09bb358 Binary files /dev/null and b/week10/week10/Assets.xcassets/kakao.imageset/kakao.png differ diff --git a/week10/week10/ContentView.swift b/week10/week10/ContentView.swift new file mode 100644 index 0000000..1ecd56f --- /dev/null +++ b/week10/week10/ContentView.swift @@ -0,0 +1,176 @@ +// +// ContentView.swift +// week10 +// +// Created by 박현수 on 2023/11/30. +// + +import SwiftUI +import Moya +import Alamofire +import KakaoSDKAuth +import KakaoSDKUser +import KakaoSDKCommon + + + +struct NextView: View { + @Environment(\.dismiss) private var dismiss + + var body: some View { + VStack(spacing: 40) { + Text("로그인 완료").font(.title).bold() + Text("로그아웃").font(.title).bold().padding().background(Color.green.opacity(0.3)).cornerRadius(10) + .onTapGesture() { + UserApi.shared.logout {(error) in + if let error = error { + print(error) + } + else { + print("logout() success.") + dismiss() + } + } + } + } + } +} + +struct ContentView: View { + @State private var seoulTemp = 0.0 + @State private var seoulDescription = "맑음" + @State private var busanTemp = 0.0 + @State private var busanDescription = "맑음" + @State private var jejuTemp = 0.0 + @State private var jejuDescription = "맑음" + @State private var isPresented = false + + let seoulUrl = "https://api.openweathermap.org/data/2.5/weather?appid=46bf119912a3aaa443360e604dfcaf40&units=metric&q=seoul&lang=kr" + let busanUrl = "https://api.openweathermap.org/data/2.5/weather?appid=46bf119912a3aaa443360e604dfcaf40&units=metric&q=busan&lang=kr" + let jejuUrl = "https://api.openweathermap.org/data/2.5/weather?appid=46bf119912a3aaa443360e604dfcaf40&units=metric&q=jeju&lang=kr" + let apiKey = "46bf119912a3aaa443360e604dfcaf40" + + + var body: some View { + VStack(spacing: 30) { + VStack { + Text("서울").font(.title).bold().padding(5).frame(maxWidth: 300) + Text(seoulDescription) + .frame(maxWidth: 300) + .font(.title2).bold() + .padding(5) + Text(String(seoulTemp)).frame(maxWidth: 300).padding(5) + }.background(Color.gray.opacity(0.3)).cornerRadius(5).padding(5) + .onAppear { + AF.request(seoulUrl, + method: .get, + parameters: nil, + encoding: URLEncoding.default) + .responseJSON { response in + switch response.result { + case .success(let data): + let dictData = data as! [String: Any] + let mainData = dictData["main"] as! [String: Any] + let tempData = mainData["temp"] as! NSNumber + let temp = tempData.doubleValue + let weatherData = dictData["weather"] as! [[String: Any]] + let innerData = weatherData.first + let description = innerData?["description"] as! String + seoulDescription = description + seoulTemp = temp + case .failure(let error): + print("\(error)") + } + } + } + + VStack { + Text("부산").font(.title).bold().padding(5).frame(maxWidth: 300) + Text(busanDescription) + .frame(maxWidth: 300) + .font(.title2).bold() + .padding(5) + Text(String(busanTemp)).frame(maxWidth: 300).padding(5) + }.background(Color.blue.opacity(0.3)).cornerRadius(5).padding() + .onAppear { + AF.request(busanUrl, + method: .get, + parameters: nil, + encoding: URLEncoding.default) + .responseJSON { response in + switch response.result { + case .success(let data): + let dictData = data as! [String: Any] + let mainData = dictData["main"] as! [String: Any] + let tempData = mainData["temp"] as! NSNumber + let temp = tempData.doubleValue + let weatherData = dictData["weather"] as! [[String: Any]] + let innerData = weatherData.first + let description = innerData?["description"] as! String + busanDescription = description + busanTemp = temp + case .failure(let error): + print("\(error)") + } + } + } + + VStack { + Text("제주").font(.title).bold().padding(5).frame(maxWidth: 300) + Text(jejuDescription) + .frame(maxWidth: 300) + .font(.title2).bold() + .padding(5) + Text(String(jejuTemp)).frame(maxWidth: 300).padding(5) + }.background(Color.orange.opacity(0.3)).cornerRadius(5).padding() + .onAppear { + AF.request(jejuUrl, + method: .get, + parameters: nil, + encoding: URLEncoding.default) + .responseJSON { response in + switch response.result { + case .success(let data): + let dictData = data as! [String: Any] + let mainData = dictData["main"] as! [String: Any] + let tempData = mainData["temp"] as! NSNumber + let temp = tempData.doubleValue + let weatherData = dictData["weather"] as! [[String: Any]] + let innerData = weatherData.first + let description = innerData?["description"] as! String + jejuDescription = description + jejuTemp = temp + case .failure(let error): + print("\(error)") + } + } + } + + Button(action: { + UserApi.shared.loginWithKakaoAccount {(oauthToken, error) in + if let error = error { + print(error) + } + else { + print("loginWithKakaoAccount() success.") + isPresented.toggle() + //do something + _ = oauthToken + } + } + }) { + Image("kakao") + }.fullScreenCover(isPresented: $isPresented) { + NextView() + } + } + } +} + + + +struct ContentView_Previews: PreviewProvider { + static var previews: some View { + ContentView() + } +} diff --git a/week10/week10/Preview Content/Preview Assets.xcassets/Contents.json b/week10/week10/Preview Content/Preview Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/week10/week10/Preview Content/Preview Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/week10/week10/week10App.swift b/week10/week10/week10App.swift new file mode 100644 index 0000000..6047f0b --- /dev/null +++ b/week10/week10/week10App.swift @@ -0,0 +1,29 @@ +// +// week10App.swift +// week10 +// +// Created by 박현수 on 2023/11/30. +// + +import SwiftUI +import KakaoSDKUser +import KakaoSDKAuth +import KakaoSDKCommon + +@main +struct week10App: App { + + init() { + KakaoSDK.initSDK(appKey: "c06f214df5044c68afa5d7bb40e9aea9") + } + + var body: some Scene { + WindowGroup { + ContentView().onOpenURL(perform: { url in + if (AuthApi.isKakaoTalkLoginUrl(url)) { + AuthController.handleOpenUrl(url: url) + } + }) + } + } +}