diff --git a/AhnChiwook-TestCode/AhnChiwook-TestCode.xcodeproj/project.pbxproj b/AhnChiwook-TestCode/AhnChiwook-TestCode.xcodeproj/project.pbxproj new file mode 100644 index 0000000..5fb296b --- /dev/null +++ b/AhnChiwook-TestCode/AhnChiwook-TestCode.xcodeproj/project.pbxproj @@ -0,0 +1,479 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 77; + objects = { + +/* Begin PBXBuildFile section */ + F6383AA12EBDD45800ADBA2C /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = F6383A992EBDD45800ADBA2C /* AppDelegate.swift */; }; + F6383AA22EBDD45800ADBA2C /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = F6383A9E2EBDD45800ADBA2C /* SceneDelegate.swift */; }; + F6383AA62EBDD45800ADBA2C /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = F6383A9D2EBDD45800ADBA2C /* LaunchScreen.storyboard */; }; + F6383ABC2EBDD55F00ADBA2C /* UIView+.swift in Sources */ = {isa = PBXBuildFile; fileRef = F6383AB72EBDD55F00ADBA2C /* UIView+.swift */; }; + F6383ABD2EBDD55F00ADBA2C /* UIFont+.swift in Sources */ = {isa = PBXBuildFile; fileRef = F6383AB92EBDD55F00ADBA2C /* UIFont+.swift */; }; + F6383ABE2EBDD55F00ADBA2C /* CustomNavigationBar.swift in Sources */ = {isa = PBXBuildFile; fileRef = F6383AA82EBDD55F00ADBA2C /* CustomNavigationBar.swift */; }; + F6383ABF2EBDD55F00ADBA2C /* BaseViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = F6383AAA2EBDD55F00ADBA2C /* BaseViewController.swift */; }; + F6383AC02EBDD55F00ADBA2C /* CustomTextField.swift in Sources */ = {isa = PBXBuildFile; fileRef = F6383AA72EBDD55F00ADBA2C /* CustomTextField.swift */; }; + F6383AC12EBDD55F00ADBA2C /* UITextField+.swift in Sources */ = {isa = PBXBuildFile; fileRef = F6383AB82EBDD55F00ADBA2C /* UITextField+.swift */; }; + F6383AC22EBDD55F00ADBA2C /* String+.swift in Sources */ = {isa = PBXBuildFile; fileRef = F6383AB62EBDD55F00ADBA2C /* String+.swift */; }; + F6383AC32EBDD55F00ADBA2C /* Pretendard-Black.otf in Resources */ = {isa = PBXBuildFile; fileRef = F6383AAC2EBDD55F00ADBA2C /* Pretendard-Black.otf */; }; + F6383AC42EBDD55F00ADBA2C /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = F6383ABB2EBDD55F00ADBA2C /* Assets.xcassets */; }; + F6383AC52EBDD55F00ADBA2C /* Pretendard-ExtraLight.otf in Resources */ = {isa = PBXBuildFile; fileRef = F6383AAF2EBDD55F00ADBA2C /* Pretendard-ExtraLight.otf */; }; + F6383AC62EBDD55F00ADBA2C /* Pretendard-Medium.otf in Resources */ = {isa = PBXBuildFile; fileRef = F6383AB12EBDD55F00ADBA2C /* Pretendard-Medium.otf */; }; + F6383AC72EBDD55F00ADBA2C /* Pretendard-Thin.otf in Resources */ = {isa = PBXBuildFile; fileRef = F6383AB42EBDD55F00ADBA2C /* Pretendard-Thin.otf */; }; + F6383AC82EBDD55F00ADBA2C /* Pretendard-Light.otf in Resources */ = {isa = PBXBuildFile; fileRef = F6383AB02EBDD55F00ADBA2C /* Pretendard-Light.otf */; }; + F6383AC92EBDD55F00ADBA2C /* Pretendard-SemiBold.otf in Resources */ = {isa = PBXBuildFile; fileRef = F6383AB32EBDD55F00ADBA2C /* Pretendard-SemiBold.otf */; }; + F6383ACA2EBDD55F00ADBA2C /* Pretendard-Bold.otf in Resources */ = {isa = PBXBuildFile; fileRef = F6383AAD2EBDD55F00ADBA2C /* Pretendard-Bold.otf */; }; + F6383ACB2EBDD55F00ADBA2C /* Pretendard-ExtraBold.otf in Resources */ = {isa = PBXBuildFile; fileRef = F6383AAE2EBDD55F00ADBA2C /* Pretendard-ExtraBold.otf */; }; + F6383ACC2EBDD55F00ADBA2C /* Pretendard-Regular.otf in Resources */ = {isa = PBXBuildFile; fileRef = F6383AB22EBDD55F00ADBA2C /* Pretendard-Regular.otf */; }; + F6383AD12EBDE8B700ADBA2C /* LoginViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = F6383ACE2EBDE8B700ADBA2C /* LoginViewController.swift */; }; + F6383AD22EBDE8B700ADBA2C /* WelcomeViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = F6383ACF2EBDE8B700ADBA2C /* WelcomeViewController.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + F6383A812EBDD42300ADBA2C /* AhnChiwook-TestCode.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "AhnChiwook-TestCode.app"; sourceTree = BUILT_PRODUCTS_DIR; }; + F6383A992EBDD45800ADBA2C /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + F6383A9B2EBDD45800ADBA2C /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + F6383A9C2EBDD45800ADBA2C /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + F6383A9E2EBDD45800ADBA2C /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = ""; }; + F6383AA72EBDD55F00ADBA2C /* CustomTextField.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CustomTextField.swift; sourceTree = ""; }; + F6383AA82EBDD55F00ADBA2C /* CustomNavigationBar.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CustomNavigationBar.swift; sourceTree = ""; }; + F6383AAA2EBDD55F00ADBA2C /* BaseViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BaseViewController.swift; sourceTree = ""; }; + F6383AAC2EBDD55F00ADBA2C /* Pretendard-Black.otf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "Pretendard-Black.otf"; sourceTree = ""; }; + F6383AAD2EBDD55F00ADBA2C /* Pretendard-Bold.otf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "Pretendard-Bold.otf"; sourceTree = ""; }; + F6383AAE2EBDD55F00ADBA2C /* Pretendard-ExtraBold.otf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "Pretendard-ExtraBold.otf"; sourceTree = ""; }; + F6383AAF2EBDD55F00ADBA2C /* Pretendard-ExtraLight.otf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "Pretendard-ExtraLight.otf"; sourceTree = ""; }; + F6383AB02EBDD55F00ADBA2C /* Pretendard-Light.otf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "Pretendard-Light.otf"; sourceTree = ""; }; + F6383AB12EBDD55F00ADBA2C /* Pretendard-Medium.otf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "Pretendard-Medium.otf"; sourceTree = ""; }; + F6383AB22EBDD55F00ADBA2C /* Pretendard-Regular.otf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "Pretendard-Regular.otf"; sourceTree = ""; }; + F6383AB32EBDD55F00ADBA2C /* Pretendard-SemiBold.otf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "Pretendard-SemiBold.otf"; sourceTree = ""; }; + F6383AB42EBDD55F00ADBA2C /* Pretendard-Thin.otf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "Pretendard-Thin.otf"; sourceTree = ""; }; + F6383AB62EBDD55F00ADBA2C /* String+.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "String+.swift"; sourceTree = ""; }; + F6383AB72EBDD55F00ADBA2C /* UIView+.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UIView+.swift"; sourceTree = ""; }; + F6383AB82EBDD55F00ADBA2C /* UITextField+.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UITextField+.swift"; sourceTree = ""; }; + F6383AB92EBDD55F00ADBA2C /* UIFont+.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UIFont+.swift"; sourceTree = ""; }; + F6383ABB2EBDD55F00ADBA2C /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + F6383ACE2EBDE8B700ADBA2C /* LoginViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LoginViewController.swift; sourceTree = ""; }; + F6383ACF2EBDE8B700ADBA2C /* WelcomeViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WelcomeViewController.swift; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + F6383A7E2EBDD42300ADBA2C /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + F6383A782EBDD42300ADBA2C = { + isa = PBXGroup; + children = ( + F6383AA02EBDD45800ADBA2C /* AhnChiwook-TestCode */, + F6383A822EBDD42300ADBA2C /* Products */, + ); + sourceTree = ""; + }; + F6383A822EBDD42300ADBA2C /* Products */ = { + isa = PBXGroup; + children = ( + F6383A812EBDD42300ADBA2C /* AhnChiwook-TestCode.app */, + ); + name = Products; + sourceTree = ""; + }; + F6383AA02EBDD45800ADBA2C /* AhnChiwook-TestCode */ = { + isa = PBXGroup; + children = ( + F6383AD02EBDE8B700ADBA2C /* Presentation */, + F6383ACD2EBDD56800ADBA2C /* Global */, + F6383A992EBDD45800ADBA2C /* AppDelegate.swift */, + F6383A9B2EBDD45800ADBA2C /* Info.plist */, + F6383A9D2EBDD45800ADBA2C /* LaunchScreen.storyboard */, + F6383A9E2EBDD45800ADBA2C /* SceneDelegate.swift */, + ); + path = "AhnChiwook-TestCode"; + sourceTree = ""; + }; + F6383AA92EBDD55F00ADBA2C /* Components */ = { + isa = PBXGroup; + children = ( + F6383AA72EBDD55F00ADBA2C /* CustomTextField.swift */, + F6383AA82EBDD55F00ADBA2C /* CustomNavigationBar.swift */, + ); + path = Components; + sourceTree = ""; + }; + F6383AAB2EBDD55F00ADBA2C /* Base */ = { + isa = PBXGroup; + children = ( + F6383AAA2EBDD55F00ADBA2C /* BaseViewController.swift */, + ); + path = Base; + sourceTree = ""; + }; + F6383AB52EBDD55F00ADBA2C /* Fonts */ = { + isa = PBXGroup; + children = ( + F6383AAC2EBDD55F00ADBA2C /* Pretendard-Black.otf */, + F6383AAD2EBDD55F00ADBA2C /* Pretendard-Bold.otf */, + F6383AAE2EBDD55F00ADBA2C /* Pretendard-ExtraBold.otf */, + F6383AAF2EBDD55F00ADBA2C /* Pretendard-ExtraLight.otf */, + F6383AB02EBDD55F00ADBA2C /* Pretendard-Light.otf */, + F6383AB12EBDD55F00ADBA2C /* Pretendard-Medium.otf */, + F6383AB22EBDD55F00ADBA2C /* Pretendard-Regular.otf */, + F6383AB32EBDD55F00ADBA2C /* Pretendard-SemiBold.otf */, + F6383AB42EBDD55F00ADBA2C /* Pretendard-Thin.otf */, + ); + path = Fonts; + sourceTree = ""; + }; + F6383ABA2EBDD55F00ADBA2C /* Extensions */ = { + isa = PBXGroup; + children = ( + F6383AB62EBDD55F00ADBA2C /* String+.swift */, + F6383AB72EBDD55F00ADBA2C /* UIView+.swift */, + F6383AB82EBDD55F00ADBA2C /* UITextField+.swift */, + F6383AB92EBDD55F00ADBA2C /* UIFont+.swift */, + ); + path = Extensions; + sourceTree = ""; + }; + F6383ACD2EBDD56800ADBA2C /* Global */ = { + isa = PBXGroup; + children = ( + F6383AA92EBDD55F00ADBA2C /* Components */, + F6383AAB2EBDD55F00ADBA2C /* Base */, + F6383AB52EBDD55F00ADBA2C /* Fonts */, + F6383ABA2EBDD55F00ADBA2C /* Extensions */, + F6383ABB2EBDD55F00ADBA2C /* Assets.xcassets */, + ); + path = Global; + sourceTree = ""; + }; + F6383AD02EBDE8B700ADBA2C /* Presentation */ = { + isa = PBXGroup; + children = ( + F6383ACE2EBDE8B700ADBA2C /* LoginViewController.swift */, + F6383ACF2EBDE8B700ADBA2C /* WelcomeViewController.swift */, + ); + path = Presentation; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + F6383A802EBDD42300ADBA2C /* AhnChiwook-TestCode */ = { + isa = PBXNativeTarget; + buildConfigurationList = F6383A942EBDD42600ADBA2C /* Build configuration list for PBXNativeTarget "AhnChiwook-TestCode" */; + buildPhases = ( + F6383A7D2EBDD42300ADBA2C /* Sources */, + F6383A7E2EBDD42300ADBA2C /* Frameworks */, + F6383A7F2EBDD42300ADBA2C /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = "AhnChiwook-TestCode"; + packageProductDependencies = ( + ); + productName = "AhnChiwook-TestCode"; + productReference = F6383A812EBDD42300ADBA2C /* AhnChiwook-TestCode.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + F6383A792EBDD42300ADBA2C /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = 1; + LastSwiftUpdateCheck = 2600; + LastUpgradeCheck = 2600; + TargetAttributes = { + F6383A802EBDD42300ADBA2C = { + CreatedOnToolsVersion = 26.0; + }; + }; + }; + buildConfigurationList = F6383A7C2EBDD42300ADBA2C /* Build configuration list for PBXProject "AhnChiwook-TestCode" */; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = F6383A782EBDD42300ADBA2C; + minimizedProjectReferenceProxies = 1; + preferredProjectObjectVersion = 77; + productRefGroup = F6383A822EBDD42300ADBA2C /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + F6383A802EBDD42300ADBA2C /* AhnChiwook-TestCode */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + F6383A7F2EBDD42300ADBA2C /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + F6383AC32EBDD55F00ADBA2C /* Pretendard-Black.otf in Resources */, + F6383AC42EBDD55F00ADBA2C /* Assets.xcassets in Resources */, + F6383AC52EBDD55F00ADBA2C /* Pretendard-ExtraLight.otf in Resources */, + F6383AC62EBDD55F00ADBA2C /* Pretendard-Medium.otf in Resources */, + F6383AC72EBDD55F00ADBA2C /* Pretendard-Thin.otf in Resources */, + F6383AC82EBDD55F00ADBA2C /* Pretendard-Light.otf in Resources */, + F6383AC92EBDD55F00ADBA2C /* Pretendard-SemiBold.otf in Resources */, + F6383ACA2EBDD55F00ADBA2C /* Pretendard-Bold.otf in Resources */, + F6383ACB2EBDD55F00ADBA2C /* Pretendard-ExtraBold.otf in Resources */, + F6383ACC2EBDD55F00ADBA2C /* Pretendard-Regular.otf in Resources */, + F6383AA62EBDD45800ADBA2C /* LaunchScreen.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + F6383A7D2EBDD42300ADBA2C /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + F6383AA12EBDD45800ADBA2C /* AppDelegate.swift in Sources */, + F6383AA22EBDD45800ADBA2C /* SceneDelegate.swift in Sources */, + F6383ABC2EBDD55F00ADBA2C /* UIView+.swift in Sources */, + F6383ABD2EBDD55F00ADBA2C /* UIFont+.swift in Sources */, + F6383ABE2EBDD55F00ADBA2C /* CustomNavigationBar.swift in Sources */, + F6383ABF2EBDD55F00ADBA2C /* BaseViewController.swift in Sources */, + F6383AC02EBDD55F00ADBA2C /* CustomTextField.swift in Sources */, + F6383AD12EBDE8B700ADBA2C /* LoginViewController.swift in Sources */, + F6383AD22EBDE8B700ADBA2C /* WelcomeViewController.swift in Sources */, + F6383AC12EBDD55F00ADBA2C /* UITextField+.swift in Sources */, + F6383AC22EBDD55F00ADBA2C /* String+.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + F6383A9D2EBDD45800ADBA2C /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + F6383A9C2EBDD45800ADBA2C /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + F6383A952EBDD42600ADBA2C /* 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 = "AhnChiwook-TestCode/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 = "com.koowihc.AhnChiwook-TestCode"; + PRODUCT_NAME = "$(TARGET_NAME)"; + STRING_CATALOG_GENERATE_SYMBOLS = YES; + SWIFT_APPROACHABLE_CONCURRENCY = YES; + SWIFT_DEFAULT_ACTOR_ISOLATION = MainActor; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + F6383A962EBDD42600ADBA2C /* 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 = "AhnChiwook-TestCode/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 = "com.koowihc.AhnChiwook-TestCode"; + PRODUCT_NAME = "$(TARGET_NAME)"; + STRING_CATALOG_GENERATE_SYMBOLS = YES; + SWIFT_APPROACHABLE_CONCURRENCY = YES; + SWIFT_DEFAULT_ACTOR_ISOLATION = MainActor; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; + F6383A972EBDD42600ADBA2C /* 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 = 26.0; + 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; + }; + F6383A982EBDD42600ADBA2C /* 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 = 26.0; + 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; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + F6383A7C2EBDD42300ADBA2C /* Build configuration list for PBXProject "AhnChiwook-TestCode" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + F6383A972EBDD42600ADBA2C /* Debug */, + F6383A982EBDD42600ADBA2C /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + F6383A942EBDD42600ADBA2C /* Build configuration list for PBXNativeTarget "AhnChiwook-TestCode" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + F6383A952EBDD42600ADBA2C /* Debug */, + F6383A962EBDD42600ADBA2C /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = F6383A792EBDD42300ADBA2C /* Project object */; +} diff --git a/AhnChiwook-TestCode/AhnChiwook-TestCode.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/AhnChiwook-TestCode/AhnChiwook-TestCode.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/AhnChiwook-TestCode/AhnChiwook-TestCode.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/AhnChiwook-TestCode/AhnChiwook-TestCode/AppDelegate.swift b/AhnChiwook-TestCode/AhnChiwook-TestCode/AppDelegate.swift new file mode 100644 index 0000000..a014dca --- /dev/null +++ b/AhnChiwook-TestCode/AhnChiwook-TestCode/AppDelegate.swift @@ -0,0 +1,36 @@ +// +// AppDelegate.swift +// AhnChiwook-TestCode +// +// Created by 안치욱 on 11/7/25. +// + +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/AhnChiwook-TestCode/AhnChiwook-TestCode/Base.lproj/LaunchScreen.storyboard b/AhnChiwook-TestCode/AhnChiwook-TestCode/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..865e932 --- /dev/null +++ b/AhnChiwook-TestCode/AhnChiwook-TestCode/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/AccentColor.colorset/Contents.json b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/AccentColor.colorset/Contents.json new file mode 100644 index 0000000..eb87897 --- /dev/null +++ b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/AccentColor.colorset/Contents.json @@ -0,0 +1,11 @@ +{ + "colors" : [ + { + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/AppIcon.appiconset/Contents.json b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..2305880 --- /dev/null +++ b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,35 @@ +{ + "images" : [ + { + "idiom" : "universal", + "platform" : "ios", + "size" : "1024x1024" + }, + { + "appearances" : [ + { + "appearance" : "luminosity", + "value" : "dark" + } + ], + "idiom" : "universal", + "platform" : "ios", + "size" : "1024x1024" + }, + { + "appearances" : [ + { + "appearance" : "luminosity", + "value" : "tinted" + } + ], + "idiom" : "universal", + "platform" : "ios", + "size" : "1024x1024" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Button/Contents.json b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Button/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Button/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Button/btn_back.imageset/Contents.json b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Button/btn_back.imageset/Contents.json new file mode 100644 index 0000000..9fb831c --- /dev/null +++ b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Button/btn_back.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "btn_back.svg", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Button/btn_back.imageset/btn_back.svg b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Button/btn_back.imageset/btn_back.svg new file mode 100644 index 0000000..17abc50 --- /dev/null +++ b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Button/btn_back.imageset/btn_back.svg @@ -0,0 +1,3 @@ + + + diff --git a/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Button/btn_before.imageset/Contents.json b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Button/btn_before.imageset/Contents.json new file mode 100644 index 0000000..f15080a --- /dev/null +++ b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Button/btn_before.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "btn_before.svg", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Button/btn_before.imageset/btn_before.svg b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Button/btn_before.imageset/btn_before.svg new file mode 100644 index 0000000..f3d9d35 --- /dev/null +++ b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Button/btn_before.imageset/btn_before.svg @@ -0,0 +1,3 @@ + + + diff --git a/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Button/clear.imageset/Contents.json b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Button/clear.imageset/Contents.json new file mode 100644 index 0000000..186ffb9 --- /dev/null +++ b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Button/clear.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "x-circle@3x 2.svg", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Button/clear.imageset/x-circle@3x 2.svg b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Button/clear.imageset/x-circle@3x 2.svg new file mode 100644 index 0000000..a416cb0 --- /dev/null +++ b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Button/clear.imageset/x-circle@3x 2.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Button/eye.imageset/Contents.json b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Button/eye.imageset/Contents.json new file mode 100644 index 0000000..6a58ab4 --- /dev/null +++ b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Button/eye.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "eye@3x 2.svg", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Button/eye.imageset/eye@3x 2.svg b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Button/eye.imageset/eye@3x 2.svg new file mode 100644 index 0000000..e9e7195 --- /dev/null +++ b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Button/eye.imageset/eye@3x 2.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Button/eyeSlash.imageset/Contents.json b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Button/eyeSlash.imageset/Contents.json new file mode 100644 index 0000000..ed397ee --- /dev/null +++ b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Button/eyeSlash.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "eye-slash@3x 2.svg", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Button/eyeSlash.imageset/eye-slash@3x 2.svg b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Button/eyeSlash.imageset/eye-slash@3x 2.svg new file mode 100644 index 0000000..76e0742 --- /dev/null +++ b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Button/eyeSlash.imageset/eye-slash@3x 2.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Button/moreButton.imageset/Contents.json b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Button/moreButton.imageset/Contents.json new file mode 100644 index 0000000..6360a9b --- /dev/null +++ b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Button/moreButton.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "moreButton.svg", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Button/moreButton.imageset/moreButton.svg b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Button/moreButton.imageset/moreButton.svg new file mode 100644 index 0000000..3375f3e --- /dev/null +++ b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Button/moreButton.imageset/moreButton.svg @@ -0,0 +1,3 @@ + + + diff --git a/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Color/Contents.json b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Color/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Color/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Color/baemin_black.colorset/Contents.json b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Color/baemin_black.colorset/Contents.json new file mode 100644 index 0000000..6cb5c19 --- /dev/null +++ b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Color/baemin_black.colorset/Contents.json @@ -0,0 +1,20 @@ +{ + "colors" : [ + { + "color" : { + "color-space" : "srgb", + "components" : { + "alpha" : "1.000", + "blue" : "0x1C", + "green" : "0x1A", + "red" : "0x18" + } + }, + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Color/baemin_gray_200.colorset/Contents.json b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Color/baemin_gray_200.colorset/Contents.json new file mode 100644 index 0000000..81aa53f --- /dev/null +++ b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Color/baemin_gray_200.colorset/Contents.json @@ -0,0 +1,20 @@ +{ + "colors" : [ + { + "color" : { + "color-space" : "srgb", + "components" : { + "alpha" : "1.000", + "blue" : "0xD9", + "green" : "0xD3", + "red" : "0xD1" + } + }, + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Color/baemin_gray_300.colorset/Contents.json b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Color/baemin_gray_300.colorset/Contents.json new file mode 100644 index 0000000..e192b04 --- /dev/null +++ b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Color/baemin_gray_300.colorset/Contents.json @@ -0,0 +1,20 @@ +{ + "colors" : [ + { + "color" : { + "color-space" : "srgb", + "components" : { + "alpha" : "1.000", + "blue" : "0xB5", + "green" : "0xB3", + "red" : "0xB1" + } + }, + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Color/baemin_gray_700.colorset/Contents.json b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Color/baemin_gray_700.colorset/Contents.json new file mode 100644 index 0000000..a310fa4 --- /dev/null +++ b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Color/baemin_gray_700.colorset/Contents.json @@ -0,0 +1,20 @@ +{ + "colors" : [ + { + "color" : { + "color-space" : "srgb", + "components" : { + "alpha" : "1.000", + "blue" : "0x66", + "green" : "0x66", + "red" : "0x66" + } + }, + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Color/baemin_mint_300.colorset/Contents.json b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Color/baemin_mint_300.colorset/Contents.json new file mode 100644 index 0000000..1c89741 --- /dev/null +++ b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Color/baemin_mint_300.colorset/Contents.json @@ -0,0 +1,20 @@ +{ + "colors" : [ + { + "color" : { + "color-space" : "srgb", + "components" : { + "alpha" : "1.000", + "blue" : "0xDB", + "green" : "0xE3", + "red" : "0x7F" + } + }, + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Color/baemin_mint_500.colorset/Contents.json b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Color/baemin_mint_500.colorset/Contents.json new file mode 100644 index 0000000..f42ec7d --- /dev/null +++ b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Color/baemin_mint_500.colorset/Contents.json @@ -0,0 +1,20 @@ +{ + "colors" : [ + { + "color" : { + "color-space" : "srgb", + "components" : { + "alpha" : "1.000", + "blue" : "0xB3", + "green" : "0xB8", + "red" : "0x28" + } + }, + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Color/baemin_white.colorset/Contents.json b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Color/baemin_white.colorset/Contents.json new file mode 100644 index 0000000..fafa476 --- /dev/null +++ b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Color/baemin_white.colorset/Contents.json @@ -0,0 +1,20 @@ +{ + "colors" : [ + { + "color" : { + "color-space" : "srgb", + "components" : { + "alpha" : "1.000", + "blue" : "0xFF", + "green" : "0xFF", + "red" : "0xFF" + } + }, + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Contents.json b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/image 21.imageset/Contents.json b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/image 21.imageset/Contents.json new file mode 100644 index 0000000..7a753a4 --- /dev/null +++ b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/image 21.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "image 21.svg", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/image 21.imageset/image 21.svg b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/image 21.imageset/image 21.svg new file mode 100644 index 0000000..3ffb224 --- /dev/null +++ b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Assets.xcassets/image 21.imageset/image 21.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Base/BaseViewController.swift b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Base/BaseViewController.swift new file mode 100644 index 0000000..897b9d1 --- /dev/null +++ b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Base/BaseViewController.swift @@ -0,0 +1,45 @@ +// +// BaseViewController.swift +// AhnChiWook_assignment +// +// Created by 안치욱 on 10/27/25. +// + + +import UIKit + +import SnapKit +import Then + +class BaseViewController: UIViewController { + + override func viewWillAppear(_ animated: Bool) { + super.viewWillAppear(animated) + navigationController?.setNavigationBarHidden(true, animated: false) + } + + override func viewDidLoad() { + super.viewDidLoad() + view.backgroundColor = .baeminWhite + setStyle() + setUI() + setLayout() + setDelegate() + } + + /// UI 컴포넌트 속성 설정 (do 메서드 관련) + func setStyle() {} + + /// UI 위계 설정 (addSubView 등) + func setUI() {} + + /// 오토레이아웃 설정 (SnapKit 코드 관련) + func setLayout() {} + + /// Delegate 설정 + func setDelegate() {} + + override func touchesBegan(_ touches: Set, with event: UIEvent?) { + self.view.endEditing(true) + } +} diff --git a/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Components/CustomNavigationBar.swift b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Components/CustomNavigationBar.swift new file mode 100644 index 0000000..9d3546b --- /dev/null +++ b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Components/CustomNavigationBar.swift @@ -0,0 +1,92 @@ +// +// CustomNavigationBar.swift +// AhnChiWook_assignment +// +// Created by 안치욱 on 10/30/25. +// + + +import UIKit + +import SnapKit +import Then + +final class CustomNavigationBar: UIView { + + + // MARK: - UI + + private let titleLabel = UILabel().then { + $0.font = .title_sb_18 + $0.textColor = .baeminBlack + $0.textAlignment = .center + } + + private let backButton = UIButton().then { + $0.setImage(UIImage(named: "btn_back"), for: .normal) + } + + + // MARK: - Properties + + var onBackButtonTap: (() -> Void)? + var onRightButtonTap: (() -> Void)? + + + // MARK: - Initializer + + override init(frame: CGRect) { + super.init(frame: frame) + self.backgroundColor = .baeminWhite + setLayout() + setActions() + } + + required init?(coder: NSCoder) { + fatalError("init(coder:) has not been implemented") + } + + + // MARK: - Set + + private func setLayout() { + //backgroundColor = .systemBackground + + addSubviews( + backButton, + titleLabel + ) + + backButton.snp.makeConstraints { + $0.leading.equalToSuperview().offset(8) + $0.top.equalTo(safeAreaLayoutGuide).offset(3) + $0.width.height.equalTo(36) + } + + titleLabel.snp.makeConstraints { + $0.centerX.equalToSuperview() + $0.centerY.equalTo(backButton) + } + + } + + private func setActions() { + backButton.addTarget(self, action: #selector(backButtonTapped), for: .touchUpInside) + } + + + // MARK: - Action Handlers + + @objc private func backButtonTapped() { + onBackButtonTap?() + print("back button tapped") + } + + + // MARK: - Public Methods + + func setTitle(_ text: String) { + titleLabel.text = text + } + +} diff --git a/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Components/CustomTextField.swift b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Components/CustomTextField.swift new file mode 100644 index 0000000..6435687 --- /dev/null +++ b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Components/CustomTextField.swift @@ -0,0 +1,174 @@ +// +// CustomTextField.swift +// AhnChiWook_assignment +// +// Created by 안치욱 on 10/31/25. +// + + +import UIKit +import SnapKit +import Then + +final class CustomTextField: UITextField { + + enum FieldType { + case email + case password + } + + private let type: FieldType + private lazy var textField = UITextField() + private let placeholderLabel = UILabel() + private lazy var clearButton = UIButton(type: .system) + private lazy var secureButton = UIButton(type: .system) + private var isSecureVisible = false + + + // MARK: - Init + + init(type: FieldType, placeholder: String) { + self.type = type + super.init(frame: .zero) + setupUI(placeholder: placeholder) + setupLayout() + setupActions() + } + + required init?(coder: NSCoder) { + fatalError("init(coder:) has not been implemented") + } + + + // MARK: - Setup + + private func setupUI(placeholder: String) { + layer.cornerRadius = 4 + layer.borderWidth = 1 + layer.borderColor = UIColor.baeminGray200.cgColor + backgroundColor = .baeminWhite + + placeholderLabel.text = placeholder + placeholderLabel.font = .body_r_14 + placeholderLabel.textColor = .baeminGray700 + + textField.borderStyle = .none + textField.font = .body_r_14 + textField.textColor = .baeminBlack + textField.autocapitalizationType = .none + textField.tintColor = .baeminMint500 + textField.isSecureTextEntry = (type == .password) + + clearButton.setImage(.clear, for: .normal) + clearButton.isHidden = true + + secureButton.setImage(.eyeSlash, for: .normal) + secureButton.isHidden = (type != .password) + + addSubviews( + placeholderLabel, + textField, + clearButton, + secureButton + ) + } + + private func setupLayout() { + placeholderLabel.snp.makeConstraints { + $0.leading.equalToSuperview().offset(12) + $0.centerY.equalToSuperview() + } + + textField.snp.makeConstraints { + $0.leading.equalToSuperview().offset(12) + $0.trailing.equalToSuperview().inset(type == .password ? 70 : 40) + $0.top.bottom.equalToSuperview().inset(12) + } + + clearButton.snp.makeConstraints { + $0.centerY.equalToSuperview() + if type == .password { + $0.trailing.equalTo(secureButton.snp.leading).offset(-12) + } else { + $0.trailing.equalToSuperview().inset(12) + } + $0.size.equalTo(20) + } + + if type == .password { + secureButton.snp.makeConstraints { + $0.centerY.equalToSuperview() + $0.trailing.equalToSuperview().inset(12) + $0.size.equalTo(20) + } + } + } + + private func setupActions() { + textField.addTarget(self, action: #selector(textDidChange), for: .editingChanged) + textField.addTarget(self, action: #selector(beginEditing), for: .editingDidBegin) + textField.addTarget(self, action: #selector(tfEndEditing), for: .editingDidEnd) + clearButton.addTarget(self, action: #selector(clearText), for: .touchUpInside) + secureButton.addTarget(self, action: #selector(toggleSecure), for: .touchUpInside) + } + + + // MARK: - Actions + + @objc private func textDidChange() { + clearButton.isHidden = textField.text?.isEmpty ?? true + } + + @objc private func beginEditing() { + animatePlaceholder(up: true) + layer.borderColor = UIColor.baeminBlack.cgColor + layer.borderWidth = 2 + } + + @objc private func tfEndEditing() { + if textField.text?.isEmpty ?? true { + animatePlaceholder(up: false) + } + layer.borderColor = UIColor.baeminGray200.cgColor + layer.borderWidth = 1 + } + + @objc private func clearText() { + textField.text = "" + clearButton.isHidden = true + } + + @objc private func toggleSecure() { + isSecureVisible.toggle() + textField.isSecureTextEntry = !isSecureVisible + secureButton.setImage(isSecureVisible ? .eye : .eyeSlash, for: .normal) + } + + private func animatePlaceholder(up: Bool) { + UIView.animate(withDuration: 0.2) { + self.placeholderLabel.transform = up + ? CGAffineTransform(translationX: 0, y: -20).scaledBy(x: 0.8, y: 0.8) + : .identity + self.placeholderLabel.textColor = up ? .baeminMint500 : .baeminGray700 + } + } + + + // MARK: - Public + + override var text: String? { + get { textField.text } + set { textField.text = newValue } + } + + func reset() { + textField.text = nil + clearButton.isHidden = true + if type == .password { + secureButton.setImage(.eyeSlash, for: .normal) + textField.isSecureTextEntry = true + isSecureVisible = false + } + animatePlaceholder(up: false) + } +} diff --git a/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Extensions/String+.swift b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Extensions/String+.swift new file mode 100644 index 0000000..903d3e7 --- /dev/null +++ b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Extensions/String+.swift @@ -0,0 +1,25 @@ +// +// String+.swift +// AhnChiWook_assignment +// +// Created by 안치욱 on 10/26/25. +// + +import Foundation + +extension String { + + /// email 정규식 조건에 맞는지 확인하는 함수입니다 + var isValidEmail: Bool { + let regularExpression = "^[A-Z0-9a-z._%+-]+@([A-Za-z0-9-]+\\.)+[A-Za-z]{2,}$" + let predicate = NSPredicate(format: "SELF MATCHES %@", regularExpression) + return predicate.evaluate(with: self) + } + + /// 비밀번호 정규식 조건에 맞는지 확인하는 함수입니다 + var isValidPassword: Bool { + let regularExpression = "^(?=.*[!_@$%^&+=])[A-Za-z0-9!_@$%^&+=]{8,15}$" + let predicate = NSPredicate(format: "SELF MATCHES %@", regularExpression) + return predicate.evaluate(with: self) + } +} diff --git a/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Extensions/UIFont+.swift b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Extensions/UIFont+.swift new file mode 100644 index 0000000..c2f3f42 --- /dev/null +++ b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Extensions/UIFont+.swift @@ -0,0 +1,53 @@ +// +// UIFont+.swift +// AhnChiWook_assignment +// +// Created by 안치욱 on 10/26/25. +// + + +import UIKit + +extension UIFont { + enum FontFamily { + case thin, extraLight, light, regular, medium, semiBold, bold, extraBold, black + + var kind: String { + switch self { + case .thin: + return "Thin" + case .extraLight: + return "ExtraLight" + case .light: + return "Light" + case .regular: + return "Regular" + case .medium: + return "Medium" + case .semiBold: + return "SemiBold" + case .bold: + return "Bold" + case .extraBold: + return "ExtraBold" + case .black: + return "Black" + } + } + } + + static func pretendard(_ fontFamily: FontFamily, size: CGFloat) -> UIFont { + guard let pretendardFont = UIFont(name: "Pretendard-\(fontFamily.kind)", size: size) else { + print("😂Pretendard-\(fontFamily.kind)가 없어요") + return UIFont.systemFont(ofSize: size) + } + + return pretendardFont + } + + static let head_b_24 = UIFont.pretendard(.bold, size: 24) + static let head_b_18 = UIFont.pretendard(.bold, size: 18) + static let title_sb_18 = UIFont.pretendard(.semiBold, size: 18) + static let body_r_14 = UIFont.pretendard(.regular, size: 14) + static let caption_r_10 = UIFont.pretendard(.regular, size: 10) +} diff --git a/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Extensions/UITextField+.swift b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Extensions/UITextField+.swift new file mode 100644 index 0000000..e1d6323 --- /dev/null +++ b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Extensions/UITextField+.swift @@ -0,0 +1,33 @@ +// +// UITextField+.swift +// AhnChiWook_assignment +// +// Created by 안치욱 on 10/26/25. +// + + +import UIKit + +extension UITextField { + func addLeftPadding(_ width: CGFloat = 10) { + let paddingView = UIView(frame: CGRect(x: 0, y: 0, width: width, height: self.frame.height)) + self.leftView = paddingView + self.leftViewMode = ViewMode.always + } + + func addRightPadding(_ width: CGFloat = 10) { + let paddingView = UIView(frame: CGRect(x: 0, y: 0, width: width, height: self.frame.height)) + self.rightView = paddingView + self.rightViewMode = ViewMode.always + } + + func setPlaceholderColor(_ placeholderColor: UIColor) { + attributedPlaceholder = NSAttributedString( + string: placeholder ?? "", + attributes: [ + .foregroundColor: placeholderColor, + .font: font + ].compactMapValues { $0 } + ) + } +} diff --git a/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Extensions/UIView+.swift b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Extensions/UIView+.swift new file mode 100644 index 0000000..ccaf4df --- /dev/null +++ b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Extensions/UIView+.swift @@ -0,0 +1,17 @@ +// +// UIView+.swift +// AhnChiWook_assignment +// +// Created by 안치욱 on 10/26/25. +// + + +import UIKit + +extension UIView { + func addSubviews(_ views: UIView...) { + views.forEach { + addSubview($0) + } + } +} \ No newline at end of file diff --git a/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Fonts/Pretendard-Black.otf b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Fonts/Pretendard-Black.otf new file mode 100644 index 0000000..a0d849e Binary files /dev/null and b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Fonts/Pretendard-Black.otf differ diff --git a/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Fonts/Pretendard-Bold.otf b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Fonts/Pretendard-Bold.otf new file mode 100644 index 0000000..8e5e30a Binary files /dev/null and b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Fonts/Pretendard-Bold.otf differ diff --git a/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Fonts/Pretendard-ExtraBold.otf b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Fonts/Pretendard-ExtraBold.otf new file mode 100644 index 0000000..388f3ca Binary files /dev/null and b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Fonts/Pretendard-ExtraBold.otf differ diff --git a/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Fonts/Pretendard-ExtraLight.otf b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Fonts/Pretendard-ExtraLight.otf new file mode 100644 index 0000000..40c8b69 Binary files /dev/null and b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Fonts/Pretendard-ExtraLight.otf differ diff --git a/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Fonts/Pretendard-Light.otf b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Fonts/Pretendard-Light.otf new file mode 100644 index 0000000..228679e Binary files /dev/null and b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Fonts/Pretendard-Light.otf differ diff --git a/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Fonts/Pretendard-Medium.otf b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Fonts/Pretendard-Medium.otf new file mode 100644 index 0000000..0575069 Binary files /dev/null and b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Fonts/Pretendard-Medium.otf differ diff --git a/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Fonts/Pretendard-Regular.otf b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Fonts/Pretendard-Regular.otf new file mode 100644 index 0000000..08bf4cf Binary files /dev/null and b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Fonts/Pretendard-Regular.otf differ diff --git a/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Fonts/Pretendard-SemiBold.otf b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Fonts/Pretendard-SemiBold.otf new file mode 100644 index 0000000..e7e36ab Binary files /dev/null and b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Fonts/Pretendard-SemiBold.otf differ diff --git a/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Fonts/Pretendard-Thin.otf b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Fonts/Pretendard-Thin.otf new file mode 100644 index 0000000..77e792d Binary files /dev/null and b/AhnChiwook-TestCode/AhnChiwook-TestCode/Global/Fonts/Pretendard-Thin.otf differ diff --git a/AhnChiwook-TestCode/AhnChiwook-TestCode/Info.plist b/AhnChiwook-TestCode/AhnChiwook-TestCode/Info.plist new file mode 100644 index 0000000..54a3c5e --- /dev/null +++ b/AhnChiwook-TestCode/AhnChiwook-TestCode/Info.plist @@ -0,0 +1,35 @@ + + + + + UIAppFonts + + Pretendard-Black.otf + Pretendard-Bold.otf + Pretendard-ExtraBold.otf + Pretendard-ExtraLight.otf + Pretendard-Light.otf + Pretendard-Medium.otf + Pretendard-Regular.otf + Pretendard-SemiBold.otf + Pretendard-Thin.otf + + UIApplicationSceneManifest + + UIApplicationSupportsMultipleScenes + + UISceneConfigurations + + UIWindowSceneSessionRoleApplication + + + UISceneConfigurationName + Default Configuration + UISceneDelegateClassName + $(PRODUCT_MODULE_NAME).SceneDelegate + + + + + + diff --git a/AhnChiwook-TestCode/AhnChiwook-TestCode/Presentation/LoginViewController.swift b/AhnChiwook-TestCode/AhnChiwook-TestCode/Presentation/LoginViewController.swift new file mode 100644 index 0000000..05a9a64 --- /dev/null +++ b/AhnChiwook-TestCode/AhnChiwook-TestCode/Presentation/LoginViewController.swift @@ -0,0 +1,287 @@ +// +// LoginViewController.swift +// AhnChiWook_assignment +// +// Created by 안치욱 on 10/26/25. +// + +import UIKit + +import SnapKit +import SkyFloatingLabelTextField +import Then +import Toast + + +final class LoginViewController: BaseViewController { + + + // MARK: - Properties + + private lazy var naviBar = CustomNavigationBar().then { + $0.setTitle("이메일 또는 아이디로 계속") + } + +// private lazy var emailTextField = UITextField().then { +// $0.placeholder = "이메일 또는 아이디를 입력해 주세요" +// $0.setPlaceholderColor(.baeminGray700) +// $0.font = .body_r_14 +// $0.backgroundColor = .baeminWhite +// $0.clearButtonMode = .whileEditing +// $0.addLeftPadding(10) +// $0.autocapitalizationType = .none +// $0.layer.cornerRadius = 4 +// $0.layer.borderWidth = 1 +// $0.layer.borderColor = UIColor.baeminGray200.cgColor +// $0.textColor = .baeminBlack +// $0.addTarget(self, action: #selector(updateLoginButtonState), for: .allEditingEvents) +// } + private lazy var emailTextField = makeTextField( placeholder: "이메일 또는 아이디를 입력해 주세요" ) + private lazy var passwordTextField = makeTextField( placeholder: "비밀번호", isSecure: true ) + +// private lazy var passwordTextField = UITextField().then { +// $0.placeholder = "비밀번호" +// $0.setPlaceholderColor(.baeminGray700) +// $0.font = .body_r_14 +// $0.backgroundColor = .baeminWhite +// $0.addLeftPadding(10) +// $0.isSecureTextEntry = true +// $0.autocapitalizationType = .none +// $0.layer.cornerRadius = 4 +// $0.layer.borderWidth = 1 +// $0.layer.borderColor = UIColor.baeminGray200.cgColor +// $0.textColor = .baeminBlack +// $0.addTarget(self, action: #selector(updateLoginButtonState), for: .allEditingEvents) +// } + + private lazy var clearButton = UIButton().then { + $0.setImage(.clear, for: .normal) + $0.isHidden = true + $0.addTarget(self, action: #selector(clearButtonTapped), for: .touchUpInside) + } + + private lazy var secureButton = UIButton().then { + $0.setImage(.eyeSlash, for: .normal) + $0.isHidden = true + $0.addTarget(self, action: #selector(secureButtonTapped), for: .touchUpInside) + } + + private let rightView = UIView() + + private lazy var loginButton = UIButton().then { + $0.setTitle("로그인", for: .normal) + $0.backgroundColor = .baeminGray200 + $0.titleLabel?.font = .head_b_18 + $0.setTitleColor(.baeminWhite, for: .normal) + $0.layer.cornerRadius = 4 + $0.addTarget(self, action: #selector(loginButtonDidTap), for: .touchUpInside) + $0.isEnabled = false + } + + private lazy var findAccountButtonView = UIView().then { + $0.isUserInteractionEnabled = true + $0.addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(findAccountButtonDidTap))) + } + + private let findAccountLabel = UILabel().then { + $0.font = .body_r_14 + $0.textColor = .baeminBlack + $0.text = "계정 찾기" + } + + private let moreImageView = UIImageView().then { + $0.image = .moreButton + } + + override func setUI() { + view.addSubviews( + naviBar, + emailTextField, + passwordTextField, + rightView, + loginButton, + findAccountButtonView + ) + + rightView.addSubviews( + secureButton, + clearButton + ) + + findAccountButtonView.addSubviews( + findAccountLabel, + moreImageView + ) + } + + override func setLayout() { + naviBar.snp.makeConstraints { + $0.top.equalTo(view.safeAreaLayoutGuide) + $0.leading.trailing.equalToSuperview() + $0.height.equalTo(42) + } + + emailTextField.snp.makeConstraints { + $0.centerX.equalToSuperview() + $0.horizontalEdges.equalToSuperview().inset(16) + $0.top.equalTo(naviBar.snp.bottom).offset(24) + $0.height.equalTo(46) + } + + passwordTextField.snp.makeConstraints { + $0.centerX.equalToSuperview() + $0.horizontalEdges.equalToSuperview().inset(16) + $0.top.equalTo(emailTextField.snp.bottom).offset(12) + $0.height.equalTo(46) + } + + rightView.snp.makeConstraints { + $0.centerY.equalTo(passwordTextField.snp.centerY) + $0.trailing.equalTo(passwordTextField.snp.trailing).inset(20) + $0.height.equalTo(20) + $0.width.equalTo(56) + } + + secureButton.snp.makeConstraints { + $0.centerY.equalTo(rightView.snp.centerY) + $0.trailing.equalToSuperview() + $0.size.equalTo(20) + } + + clearButton.snp.makeConstraints { + $0.centerY.equalTo(rightView.snp.centerY) + $0.trailing.equalTo(secureButton.snp.leading).offset(-16) + $0.size.equalTo(20) + } + + loginButton.snp.makeConstraints { + $0.centerX.equalToSuperview() + $0.horizontalEdges.equalToSuperview().inset(16) + $0.top.equalTo(passwordTextField.snp.bottom).offset(20) + $0.height.equalTo(46) + } + + findAccountButtonView.snp.makeConstraints { + $0.centerX.equalToSuperview() + $0.top.equalTo(loginButton.snp.bottom).offset(32) + $0.height.equalTo(14) + $0.width.equalTo(66) + } + + findAccountLabel.snp.makeConstraints { + $0.top.leading.equalToSuperview() + $0.height.equalTo(14) + $0.width.equalTo(52) + } + + moreImageView.snp.makeConstraints { + $0.centerY.trailing.equalToSuperview() + $0.size.equalTo(12) + } + } + + override func setDelegate() { + emailTextField.delegate = self + passwordTextField.delegate = self + } + + private func makeTextField( placeholder: String, isSecure: Bool = false ) -> UITextField { + let textField = UITextField() + textField.placeholder = placeholder + textField.setPlaceholderColor(.baeminGray700) + textField.font = .body_r_14 + textField.backgroundColor = .baeminWhite + textField.addLeftPadding(10) + textField.autocapitalizationType = .none + textField.layer.cornerRadius = 4 + textField.layer.borderWidth = 1 + textField.layer.borderColor = UIColor.baeminGray200.cgColor + textField.textColor = .baeminBlack + textField.isSecureTextEntry = isSecure + textField.clearButtonMode = isSecure ? .never : .whileEditing + textField.addTarget(self, action: #selector(updateLoginButtonState), for: .allEditingEvents) + return textField + } + + private func pushToWelcome() { + let welcomeVC = WelcomeViewController() + welcomeVC.email = emailTextField.text + navigationController?.pushViewController(welcomeVC, animated: true) + welcomeVC.loginDataCompletion = { [weak self] in + self?.resetTextField() + self?.updateLoginButtonState() + + } + } + + private func resetTextField() { + emailTextField.text = nil + passwordTextField.text = nil + passwordTextField.isSecureTextEntry = true + secureButton.setImage(passwordTextField.isSecureTextEntry ? .eyeSlash : .eye, for: .normal) + } + + @objc + private func clearButtonTapped() { + passwordTextField.text = nil + updateLoginButtonState() + } + + @objc + private func secureButtonTapped() { + let isSecure = passwordTextField.isSecureTextEntry + secureButton.setImage(isSecure ? .eye : .eyeSlash, for: .normal) + passwordTextField.isSecureTextEntry.toggle() + } + + @objc + private func loginButtonDidTap() { + guard let email = emailTextField.text, let password = passwordTextField.text, email.isValidEmail, password.isValidPassword else { + if emailTextField.text?.isValidEmail == false { + self.view.makeToast("이메일 형식이 달라요", duration: 1.0, position: .bottom) + } else if passwordTextField.text?.isValidPassword == false { + self.view.makeToast("비밀번호 형식이 달라요", duration: 1.0, position: .bottom) + } + return + } + view.endEditing(true) + pushToWelcome() + } + + @objc + private func updateLoginButtonState() { + let isEmailValid = (emailTextField.text?.isEmpty == false) + let isPasswordValid = (passwordTextField.text?.isEmpty == false) + let canLogin = isEmailValid && isPasswordValid + + loginButton.isEnabled = canLogin + loginButton.backgroundColor = canLogin ? .baeminMint500 : .baeminGray200 + + if passwordTextField.text?.isEmpty == false { + clearButton.isHidden = false + secureButton.isHidden = false + } + else + { + clearButton.isHidden = true + secureButton.isHidden = true + } + } + + @objc + private func findAccountButtonDidTap() { + print("계정 찾기 버튼 눌림") + } +} + +extension LoginViewController: UITextFieldDelegate { + func textFieldDidBeginEditing(_ textField: UITextField) { + textField.layer.borderColor = UIColor.baeminBlack.cgColor + textField.layer.borderWidth = 2 + } + + func textFieldDidEndEditing(_ textField: UITextField) { + textField.layer.borderColor = UIColor.baeminGray200.cgColor + textField.layer.borderWidth = 1 + } +} diff --git a/AhnChiwook-TestCode/AhnChiwook-TestCode/Presentation/WelcomeViewController.swift b/AhnChiwook-TestCode/AhnChiwook-TestCode/Presentation/WelcomeViewController.swift new file mode 100644 index 0000000..94dd27e --- /dev/null +++ b/AhnChiwook-TestCode/AhnChiwook-TestCode/Presentation/WelcomeViewController.swift @@ -0,0 +1,110 @@ +// +// WelcomeViewController.swift +// AhnChiWook_assignment +// +// Created by 안치욱 on 10/27/25. +// + +import UIKit + +import SnapKit +import Then + +final class WelcomeViewController: BaseViewController { + + + // MARK: - Properties + + var loginDataCompletion: (() -> Void)? + + var email: String? + + private let naviBar = CustomNavigationBar() + + private let welcomeImage = UIImageView().then { + $0.image = .image21 + } + + private let welcomeLabel = UILabel().then { + $0.text = "환영합니다" + $0.font = .head_b_24 + $0.textColor = .baeminBlack + } + + private let hiLabel = UILabel().then { + $0.text = "익명의 사용자님 반가워요!" + $0.font = .title_sb_18 + $0.textColor = .baeminBlack + } + + private lazy var backButton = UIButton().then { + $0.setTitle("뒤로가기", for: .normal) + $0.backgroundColor = .baeminMint500 + $0.titleLabel?.font = .title_sb_18 + $0.setTitleColor(.baeminWhite, for: .normal) + $0.layer.cornerRadius = 4 + $0.addTarget(self, action: #selector(backButtonDidTap), for: .touchUpInside) + } + + + // MARK: - Setting Method + + override func setStyle() { + naviBar.setTitle("대체 뼈찜 누가 시켰어??") + bindEmail() + } + + override func setUI() { + view.addSubviews( + naviBar, + welcomeImage, + welcomeLabel, + hiLabel, + backButton + ) + } + + override func setLayout() { + naviBar.snp.makeConstraints { + $0.top.equalTo(view.safeAreaLayoutGuide) + $0.leading.trailing.equalToSuperview() + $0.height.equalTo(42) + } + + welcomeImage.snp.makeConstraints { + $0.top.equalTo(naviBar.snp.bottom).offset(6) + $0.horizontalEdges.equalToSuperview() + } + + welcomeLabel.snp.makeConstraints { + $0.top.equalTo(welcomeImage.snp.bottom).offset(24) + $0.centerX.equalToSuperview() + } + + hiLabel.snp.makeConstraints { + $0.top.equalTo(welcomeLabel.snp.bottom).offset(16) + $0.centerX.equalToSuperview() + } + + backButton.snp.makeConstraints { + $0.bottom.equalToSuperview().inset(48) + $0.centerX.equalToSuperview() + $0.horizontalEdges.equalToSuperview().inset(16) + $0.height.equalTo(52) + } + } + + + // MARK: - Method + + private func bindEmail() { + guard let email else { return } + hiLabel.text = "\(email)님 반가워요!" + } + + @objc + private func backButtonDidTap() { + self.navigationController?.popViewController(animated: true) + loginDataCompletion?() + } +} diff --git a/AhnChiwook-TestCode/AhnChiwook-TestCode/SceneDelegate.swift b/AhnChiwook-TestCode/AhnChiwook-TestCode/SceneDelegate.swift new file mode 100644 index 0000000..f44560b --- /dev/null +++ b/AhnChiwook-TestCode/AhnChiwook-TestCode/SceneDelegate.swift @@ -0,0 +1,52 @@ +// +// SceneDelegate.swift +// AhnChiwook-TestCode +// +// Created by 안치욱 on 11/7/25. +// + +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. + } + + +} +