diff --git a/Kream/.DS_Store b/Kream/.DS_Store new file mode 100644 index 0000000..9385131 Binary files /dev/null and b/Kream/.DS_Store differ diff --git a/Kream/Kream.xcodeproj/project.pbxproj b/Kream/Kream.xcodeproj/project.pbxproj new file mode 100644 index 0000000..7ba11a5 --- /dev/null +++ b/Kream/Kream.xcodeproj/project.pbxproj @@ -0,0 +1,369 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 56; + objects = { + +/* Begin PBXBuildFile section */ + 2C8A1D9B2CB26FBD003038F5 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2C8A1D9A2CB26FBD003038F5 /* AppDelegate.swift */; }; + 2C8A1D9D2CB26FBD003038F5 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2C8A1D9C2CB26FBD003038F5 /* SceneDelegate.swift */; }; + 2C8A1D9F2CB26FBD003038F5 /* LoginViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2C8A1D9E2CB26FBD003038F5 /* LoginViewController.swift */; }; + 2C8A1DA42CB26FBF003038F5 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 2C8A1DA32CB26FBF003038F5 /* Assets.xcassets */; }; + 2C8A1DB22CB2922F003038F5 /* LoginModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2C8A1DB12CB2922F003038F5 /* LoginModel.swift */; }; + 2C8A1DBA2CB29449003038F5 /* LoginView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2C8A1DB92CB29449003038F5 /* LoginView.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 2C8A1D972CB26FBD003038F5 /* Kream.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Kream.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 2C8A1D9A2CB26FBD003038F5 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 2C8A1D9C2CB26FBD003038F5 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = ""; }; + 2C8A1D9E2CB26FBD003038F5 /* LoginViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LoginViewController.swift; sourceTree = ""; }; + 2C8A1DA32CB26FBF003038F5 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 2C8A1DA82CB26FBF003038F5 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 2C8A1DB12CB2922F003038F5 /* LoginModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LoginModel.swift; sourceTree = ""; }; + 2C8A1DB92CB29449003038F5 /* LoginView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LoginView.swift; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 2C8A1D942CB26FBD003038F5 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 2C8A1D8E2CB26FBD003038F5 = { + isa = PBXGroup; + children = ( + 2C8A1D992CB26FBD003038F5 /* Kream */, + 2C8A1D982CB26FBD003038F5 /* Products */, + ); + sourceTree = ""; + }; + 2C8A1D982CB26FBD003038F5 /* Products */ = { + isa = PBXGroup; + children = ( + 2C8A1D972CB26FBD003038F5 /* Kream.app */, + ); + name = Products; + sourceTree = ""; + }; + 2C8A1D992CB26FBD003038F5 /* Kream */ = { + isa = PBXGroup; + children = ( + 2C8A1DB02CB2921D003038F5 /* ViewControllers */, + 2C8A1DAF2CB29202003038F5 /* Views */, + 2C8A1DAE2CB291FB003038F5 /* Models */, + 2C8A1D9A2CB26FBD003038F5 /* AppDelegate.swift */, + 2C8A1D9C2CB26FBD003038F5 /* SceneDelegate.swift */, + 2C8A1D9E2CB26FBD003038F5 /* LoginViewController.swift */, + 2C8A1DA32CB26FBF003038F5 /* Assets.xcassets */, + 2C8A1DA82CB26FBF003038F5 /* Info.plist */, + ); + path = Kream; + sourceTree = ""; + }; + 2C8A1DAE2CB291FB003038F5 /* Models */ = { + isa = PBXGroup; + children = ( + 2C8A1DB12CB2922F003038F5 /* LoginModel.swift */, + ); + path = Models; + sourceTree = ""; + }; + 2C8A1DAF2CB29202003038F5 /* Views */ = { + isa = PBXGroup; + children = ( + 2C8A1DB92CB29449003038F5 /* LoginView.swift */, + ); + path = Views; + sourceTree = ""; + }; + 2C8A1DB02CB2921D003038F5 /* ViewControllers */ = { + isa = PBXGroup; + children = ( + ); + path = ViewControllers; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 2C8A1D962CB26FBD003038F5 /* Kream */ = { + isa = PBXNativeTarget; + buildConfigurationList = 2C8A1DAB2CB26FBF003038F5 /* Build configuration list for PBXNativeTarget "Kream" */; + buildPhases = ( + 2C8A1D932CB26FBD003038F5 /* Sources */, + 2C8A1D942CB26FBD003038F5 /* Frameworks */, + 2C8A1D952CB26FBD003038F5 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = Kream; + productName = Kream; + productReference = 2C8A1D972CB26FBD003038F5 /* Kream.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 2C8A1D8F2CB26FBD003038F5 /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = 1; + LastSwiftUpdateCheck = 1540; + LastUpgradeCheck = 1540; + TargetAttributes = { + 2C8A1D962CB26FBD003038F5 = { + CreatedOnToolsVersion = 15.4; + }; + }; + }; + buildConfigurationList = 2C8A1D922CB26FBD003038F5 /* Build configuration list for PBXProject "Kream" */; + compatibilityVersion = "Xcode 14.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 2C8A1D8E2CB26FBD003038F5; + productRefGroup = 2C8A1D982CB26FBD003038F5 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 2C8A1D962CB26FBD003038F5 /* Kream */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 2C8A1D952CB26FBD003038F5 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 2C8A1DA42CB26FBF003038F5 /* Assets.xcassets in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 2C8A1D932CB26FBD003038F5 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 2C8A1D9F2CB26FBD003038F5 /* LoginViewController.swift in Sources */, + 2C8A1DB22CB2922F003038F5 /* LoginModel.swift in Sources */, + 2C8A1D9B2CB26FBD003038F5 /* AppDelegate.swift in Sources */, + 2C8A1DBA2CB29449003038F5 /* LoginView.swift in Sources */, + 2C8A1D9D2CB26FBD003038F5 /* SceneDelegate.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin XCBuildConfiguration section */ + 2C8A1DA92CB26FBF003038F5 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + 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; + ENABLE_USER_SCRIPT_SANDBOXING = YES; + GCC_C_LANGUAGE_STANDARD = gnu17; + 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 = 17.5; + LOCALIZATION_PREFERS_STRING_CATALOGS = YES; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)"; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 2C8A1DAA2CB26FBF003038F5 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + 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; + ENABLE_USER_SCRIPT_SANDBOXING = YES; + GCC_C_LANGUAGE_STANDARD = gnu17; + 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 = 17.5; + LOCALIZATION_PREFERS_STRING_CATALOGS = YES; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 2C8A1DAC2CB26FBF003038F5 /* 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 = Kream/Info.plist; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen; + 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 = yoni.Kream; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 2C8A1DAD2CB26FBF003038F5 /* 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 = Kream/Info.plist; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen; + 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 = yoni.Kream; + 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 */ + 2C8A1D922CB26FBD003038F5 /* Build configuration list for PBXProject "Kream" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 2C8A1DA92CB26FBF003038F5 /* Debug */, + 2C8A1DAA2CB26FBF003038F5 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 2C8A1DAB2CB26FBF003038F5 /* Build configuration list for PBXNativeTarget "Kream" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 2C8A1DAC2CB26FBF003038F5 /* Debug */, + 2C8A1DAD2CB26FBF003038F5 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 2C8A1D8F2CB26FBD003038F5 /* Project object */; +} diff --git a/Kream/Kream.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Kream/Kream.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/Kream/Kream.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/Kream/Kream.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/Kream/Kream.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/Kream/Kream.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/Kream/Kream.xcodeproj/project.xcworkspace/xcuserdata/seon.xcuserdatad/UserInterfaceState.xcuserstate b/Kream/Kream.xcodeproj/project.xcworkspace/xcuserdata/seon.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000..33b3cb4 Binary files /dev/null and b/Kream/Kream.xcodeproj/project.xcworkspace/xcuserdata/seon.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/Kream/Kream.xcodeproj/xcuserdata/seon.xcuserdatad/xcschemes/xcschememanagement.plist b/Kream/Kream.xcodeproj/xcuserdata/seon.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..ea7c937 --- /dev/null +++ b/Kream/Kream.xcodeproj/xcuserdata/seon.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,14 @@ + + + + + SchemeUserState + + Kream.xcscheme_^#shared#^_ + + orderHint + 0 + + + + diff --git a/Kream/Kream/AppDelegate.swift b/Kream/Kream/AppDelegate.swift new file mode 100644 index 0000000..eed7b06 --- /dev/null +++ b/Kream/Kream/AppDelegate.swift @@ -0,0 +1,36 @@ +// +// AppDelegate.swift +// Kream +// +// Created by 선가연 on 10/6/24. +// + +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/Kream/Kream/Assets.xcassets/AccentColor.colorset/Contents.json b/Kream/Kream/Assets.xcassets/AccentColor.colorset/Contents.json new file mode 100644 index 0000000..eb87897 --- /dev/null +++ b/Kream/Kream/Assets.xcassets/AccentColor.colorset/Contents.json @@ -0,0 +1,11 @@ +{ + "colors" : [ + { + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Kream/Kream/Assets.xcassets/AppIcon.appiconset/Contents.json b/Kream/Kream/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..13613e3 --- /dev/null +++ b/Kream/Kream/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,13 @@ +{ + "images" : [ + { + "idiom" : "universal", + "platform" : "ios", + "size" : "1024x1024" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Kream/Kream/Assets.xcassets/Contents.json b/Kream/Kream/Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/Kream/Kream/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Kream/Kream/Assets.xcassets/kream_logo.imageset/Contents.json b/Kream/Kream/Assets.xcassets/kream_logo.imageset/Contents.json new file mode 100644 index 0000000..2dbd877 --- /dev/null +++ b/Kream/Kream/Assets.xcassets/kream_logo.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "kream_logo.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Kream/Kream/Assets.xcassets/kream_logo.imageset/kream_logo.png b/Kream/Kream/Assets.xcassets/kream_logo.imageset/kream_logo.png new file mode 100644 index 0000000..8f81067 Binary files /dev/null and b/Kream/Kream/Assets.xcassets/kream_logo.imageset/kream_logo.png differ diff --git a/Kream/Kream/Info.plist b/Kream/Kream/Info.plist new file mode 100644 index 0000000..0eb786d --- /dev/null +++ b/Kream/Kream/Info.plist @@ -0,0 +1,23 @@ + + + + + UIApplicationSceneManifest + + UIApplicationSupportsMultipleScenes + + UISceneConfigurations + + UIWindowSceneSessionRoleApplication + + + UISceneConfigurationName + Default Configuration + UISceneDelegateClassName + $(PRODUCT_MODULE_NAME).SceneDelegate + + + + + + diff --git a/Kream/Kream/LoginViewController.swift b/Kream/Kream/LoginViewController.swift new file mode 100644 index 0000000..2372120 --- /dev/null +++ b/Kream/Kream/LoginViewController.swift @@ -0,0 +1,22 @@ +// +// ViewController.swift +// Kream +// +// Created by 선가연 on 10/6/24. +// + +import UIKit + +class LoginViewController: UIViewController { + + override func viewDidLoad() { + super.viewDidLoad() + self.view = loginView + } + + private lazy var loginView: LoginView = { + let view = LoginView() + return view + }() +} + diff --git a/Kream/Kream/Models/LoginModel.swift b/Kream/Kream/Models/LoginModel.swift new file mode 100644 index 0000000..1830e28 --- /dev/null +++ b/Kream/Kream/Models/LoginModel.swift @@ -0,0 +1,11 @@ +// +// LoginModel.swift +// Kream +// +// Created by 선가연 on 10/6/24. +// + +struct LoginModel { + var id: String + var pwd: String +} diff --git a/Kream/Kream/SceneDelegate.swift b/Kream/Kream/SceneDelegate.swift new file mode 100644 index 0000000..f5121a5 --- /dev/null +++ b/Kream/Kream/SceneDelegate.swift @@ -0,0 +1,53 @@ +// +// SceneDelegate.swift +// Kream +// +// Created by 선가연 on 10/6/24. +// + +import UIKit + +class SceneDelegate: UIResponder, UIWindowSceneDelegate { + + var window: UIWindow? + + + func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { + guard let windowScene = (scene as? UIWindowScene) else { return } + window = UIWindow(frame: windowScene.coordinateSpace.bounds) + window?.windowScene = windowScene + window?.rootViewController = LoginViewController() + window?.makeKeyAndVisible() + } + + 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/Kream/Kream/Views/LoginView.swift b/Kream/Kream/Views/LoginView.swift new file mode 100644 index 0000000..20c32cc --- /dev/null +++ b/Kream/Kream/Views/LoginView.swift @@ -0,0 +1,174 @@ +// +// LoginView.swift +// Kream +// +// Created by 선가연 on 10/6/24. +// + +import UIKit + +class LoginView: UIView { + + override init(frame: CGRect) { + super.init(frame: frame) + self.backgroundColor = .white + self.addComponents() + self.setupConstraints() + } + + required init?(coder: NSCoder) { + fatalError("init(coder:) has not been implemented") + } + + // 컴포넌트 추가 + private func addComponents() { + self.addSubview(logoImageView) + self.addSubview(emailLabel) + self.addSubview(emailTextField) + self.addSubview(passwordLabel) + self.addSubview(passwordTextField) + self.addSubview(loginButton) + self.addSubview(kakaoLoginButton) + self.addSubview(appleLoginButton) + } + + // 크림 로고 이미지 + let logoImageView: UIImageView = { + let imageView = UIImageView() + + imageView.image = UIImage(named: "kream_logo") + imageView.contentMode = .scaleAspectFit + imageView.translatesAutoresizingMaskIntoConstraints = false + + return imageView + }() + + // 이메일 레이블 + private let emailLabel: UILabel = { + let label = UILabel() + label.text = "이메일 주소" + label.font = UIFont.systemFont(ofSize: 12) + label.translatesAutoresizingMaskIntoConstraints = false + return label + }() + + // 이메일 텍스트 필드 + private let emailTextField: UITextField = { + let textField = UITextField() + textField.placeholder = "예) kream@kream.co.kr" + textField.font = UIFont.systemFont(ofSize: 12) + textField.layer.cornerRadius = 15 + textField.layer.borderWidth = 1 + textField.layer.borderColor = UIColor.systemGray4.cgColor + textField.translatesAutoresizingMaskIntoConstraints = false + return textField + }() + + // 비밀번호 레이블 + private let passwordLabel: UILabel = { + let label = UILabel() + label.text = "비밀번호" + label.font = UIFont.systemFont(ofSize: 12) + label.translatesAutoresizingMaskIntoConstraints = false + return label + }() + + // 비밀번호 텍스트 필드 + private let passwordTextField: UITextField = { + let textField = UITextField() + textField.placeholder = "비밀번호를 입력해 주세요" + textField.isSecureTextEntry = true + textField.font = UIFont.systemFont(ofSize: 12) + textField.layer.cornerRadius = 15 + textField.layer.borderWidth = 1 + textField.layer.borderColor = UIColor.systemGray4.cgColor + textField.translatesAutoresizingMaskIntoConstraints = false + return textField + }() + + // 로그인 버튼 + private let loginButton: UIButton = { + let button = UIButton(type: .system) + button.setTitle("로그인", for: .normal) + button.backgroundColor = UIColor.systemGray4 + button.setTitleColor(.white, for: .normal) + button.titleLabel?.font = UIFont.systemFont(ofSize: 14) + button.layer.cornerRadius = 8 + button.translatesAutoresizingMaskIntoConstraints = false + return button + }() + + // 카카오 로그인 버튼 + private let kakaoLoginButton: UIButton = { + let button = UIButton(type: .system) + button.setTitle("카카오로 로그인", for: .normal) + button.titleLabel?.font = UIFont.boldSystemFont(ofSize: 14) + button.setTitleColor(.black, for: .normal) + button.layer.cornerRadius = 8 + button.layer.borderWidth = 1 + button.layer.borderColor = UIColor.systemGray4.cgColor + button.translatesAutoresizingMaskIntoConstraints = false + return button + }() + + // 애플 로그인 버튼 + private let appleLoginButton: UIButton = { + let button = UIButton(type: .system) + button.setTitle("Apple로 로그인", for: .normal) + button.titleLabel?.font = UIFont.boldSystemFont(ofSize: 14) + button.setTitleColor(.black, for: .normal) + button.layer.cornerRadius = 8 + button.layer.borderWidth = 1 + button.layer.borderColor = UIColor.systemGray4.cgColor + button.translatesAutoresizingMaskIntoConstraints = false + return button + }() + + // 오토 레이아웃 설정 + private func setupConstraints() { + NSLayoutConstraint.activate([ + // 크림 로고 이미지 + logoImageView.topAnchor.constraint(equalTo: self.topAnchor, constant: 126), + logoImageView.leftAnchor.constraint(equalTo: self.leftAnchor, constant: 53), + logoImageView.rightAnchor.constraint(equalTo: self.rightAnchor, constant: -53), + + // 이메일 레이블 + emailLabel.topAnchor.constraint(equalTo: self.logoImageView.bottomAnchor, constant: 87), + emailLabel.leftAnchor.constraint(equalTo: self.leftAnchor, constant: 45), + + // 이메일 텍스트 필드 + emailTextField.topAnchor.constraint(equalTo: self.emailLabel.bottomAnchor, constant: 8), + emailTextField.leftAnchor.constraint(equalTo: self.leftAnchor, constant: 45), + emailTextField.rightAnchor.constraint(equalTo: self.rightAnchor, constant: -45), + emailTextField.heightAnchor.constraint(equalToConstant: 38), + + // 비밀번호 레이블 + passwordLabel.topAnchor.constraint(equalTo: self.emailTextField.bottomAnchor, constant: 17), + passwordLabel.leadingAnchor.constraint(equalTo: self.emailLabel.leadingAnchor, constant: 0), + + // 비밀번호 텍스트 필드 + passwordTextField.topAnchor.constraint(equalTo: self.passwordLabel.bottomAnchor, constant: 8), + passwordTextField.leadingAnchor.constraint(equalTo: self.emailLabel.leadingAnchor, constant: 0), + passwordTextField.trailingAnchor.constraint(equalTo: emailTextField.trailingAnchor, constant: 0), + passwordTextField.heightAnchor.constraint(equalToConstant: 38), + + // 로그인 버튼 + loginButton.topAnchor.constraint(equalTo: self.passwordTextField.bottomAnchor, constant: 17), + loginButton.leadingAnchor.constraint(equalTo: self.emailTextField.leadingAnchor, constant: 0), + loginButton.trailingAnchor.constraint(equalTo: self.emailTextField.trailingAnchor, constant: 0), + loginButton.heightAnchor.constraint(equalToConstant: 38), + + // 카카오 로그인 버튼 + kakaoLoginButton.topAnchor.constraint(equalTo: self.loginButton.bottomAnchor, constant: 87), + kakaoLoginButton.leadingAnchor.constraint(equalTo: self.emailTextField.leadingAnchor, constant: 0), + kakaoLoginButton.trailingAnchor.constraint(equalTo: self.emailTextField.trailingAnchor, constant: 0), + kakaoLoginButton.heightAnchor.constraint(equalToConstant: 38), + + // 애플 로그인 버튼 + appleLoginButton.topAnchor.constraint(equalTo: self.kakaoLoginButton.bottomAnchor, constant: 22), + appleLoginButton.leadingAnchor.constraint(equalTo: self.emailTextField.leadingAnchor, constant: 0), + appleLoginButton.trailingAnchor.constraint(equalTo: self.emailTextField.trailingAnchor, constant: 0), + appleLoginButton.heightAnchor.constraint(equalToConstant: 38) + ]) + } +}